I am just testing it in the browser at the moment?
I am just testing it in the browser at the moment?
The JS code that I adviced you (navigator.app.loadUrl) would work only if you build app for Android or iOS. Because navigator.app.loadUrl is a function specific for Cordova library that Tiggzi uses for app work on mobile devices.
Ok I understand thanks I need to test on the phone!
I have a similar problem: I have a list of links dinamically built by a rest service and I wont to open them in a new native browser page.
i tested the code navigator.app.loadUrl("http://www.google.com", { openExternal:true } ); by adding a custom javascript on a click event both for a label and for a button components.....
but when I click on them nothing happens (it looks like they are not links).
I would like to know also how to use the js with the dynamic list of links (what should i write instead of http://www.google.com) and if it is correct to add the JS on click event on the list items or in the mapping view.
P.S.: I'm using the old version of tiggzi
Hello! Could you clarify how did you test the app? navigator.app.loadUrl would work on Android only
[quote:]what should i write instead of http://www.google.com[/quote]
if you map address to listitem's text you can use $(this).text() in JS code (on Listitem click event)
Hi Katya
Your code snippet works fine to load the device's browser. How would I load the URL inapp? I do not want to launch a browser. The website must be displayed within the app.
Hi, you can open any link inside app, but the problem is that on iPhone/iPad devices don't have back button thus you won't be able to return back to app. It's better to use childBrowser https://getsatisfaction.com/apperyio/...
Hi Maina
Thank you. So what you are saying, it is pointless opening the URL within the app for IOS. I have also replied to your please can you refer to the other post which is also about this topic.
I have a requirement to open a link in Safari (vs. the inAppBrowser). Apple has rejected a revision to my app because the link content is not allowed in the app but must open in Safari (It's a donation link for a church and Apple won't budge).
The javascript window.open('mylink.com'); is not supported in iOS anymore (it gives an error).
The navigator.app.loadUrl(the_link, { openExternal:true } ); only works on Android (on iOS it does nothing).
The built in Appery.io "Navigate to Link" doesn't work on iOS either.
So I am stuck.
Is there anyway to force a link to open in Safari?
Steve! Look if these references can help
http://stackoverflow.com/questions/79...
http://stackoverflow.com/questions/17...