Denise
Posts: 0
Joined: Wed Jan 30, 2013 5:59 am

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

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

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

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

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.

Denise
Posts: 0
Joined: Wed Jan 30, 2013 5:59 am

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

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

Marco Della Gala
Posts: 0
Joined: Mon Mar 04, 2013 1:18 pm

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

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

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

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

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)

Deon
Posts: 0
Joined: Sun Jun 30, 2013 6:00 am

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

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.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

How to get a link to open in a browser from 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/...

Deon
Posts: 0
Joined: Sun Jun 30, 2013 6:00 am

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

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

SteveLacy
Posts: 6
Joined: Fri Apr 20, 2012 11:54 pm

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

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?

Return to “Issues”