Page 2 of 2

How to get a link to open in a browser from the app

Posted: Wed Feb 13, 2013 9:06 pm
by Denise

I am just testing it in the browser at the moment?


How to get a link to open in a browser from the app

Posted: Wed Feb 13, 2013 9:28 pm
by Kateryna Grynko

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.


How to get a link to open in a browser from the app

Posted: Wed Feb 13, 2013 9:38 pm
by Denise

Ok I understand thanks I need to test on the phone!


How to get a link to open in a browser from the app

Posted: Mon Mar 04, 2013 2:03 pm
by Marco Della Gala

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


How to get a link to open in a browser from the app

Posted: Mon Mar 04, 2013 5:17 pm
by Maryna Brodina

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)


How to get a link to open in a browser from the app

Posted: Wed Jul 03, 2013 4:11 am
by Deon

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.


How to get a link to open in a browser from the app

Posted: Wed Jul 03, 2013 6:02 am
by Maryna Brodina

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/...


How to get a link to open in a browser from the app

Posted: Wed Jul 03, 2013 6:32 am
by Deon

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.

https://getsatisfaction.com/apperyio/...


How to get a link to open in a browser from the app

Posted: Wed Jul 24, 2013 11:26 pm
by SteveLacy

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?


How to get a link to open in a browser from the app

Posted: Wed Jul 24, 2013 11:42 pm
by Alena Prykhodko