James Appleford
Posts: 0
Joined: Wed Jul 09, 2014 11:08 pm

inApp browser / opening in native browser not working as expected - iOS

Hi
I having some issues opening a webpage link. This is happening in iOS, unsure if it is the same on android as i have not tested it yet.
No matter what I seem to try I cannot get it to open a web page link in the native browser, in the inApp browser it does not show the navigation leaving the user with no way to go back to the app.

I have read http://devcenter.appery.io/tutorials/...
and https://getsatisfaction.com/apperyio/...

I am currently using using:
window.open(the_link, "_system");

This is happening on iOS 8.1.2

Please help!

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

inApp browser / opening in native browser not working as expected - iOS

Hi James -

I've tested this code on iOS 7.1.2 and 8.1 and it works correctly - system browser opens URL.

James Appleford
Posts: 0
Joined: Wed Jul 09, 2014 11:08 pm

inApp browser / opening in native browser not working as expected - iOS

Hi Illya

Have you got any suggestions I can try to rectify the issue. It seems to me this not normal function if this JS is working for you.

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

inApp browser / opening in native browser not working as expected - iOS

James -

Are you using code like this on button click:
pre
codewindow.open('http://appery.io', '_system');/code
/pre

  • or you're passing URL with some another method?
Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

inApp browser / opening in native browser not working as expected - iOS

And to add:
-- if you want to have a possibility to show link and after that close this window with back transition to your app, use this code:
pre
codewindow.open('http://appery.io', '_blank');/code
/pre

and also you can change text of 'Done' button like this:
pre
codewindow.open('http://appery.io', '_blank', 'closebuttoncaption=Back to MyApp');/code
/pre

James Appleford
Posts: 0
Joined: Wed Jul 09, 2014 11:08 pm

inApp browser / opening in native browser not working as expected - iOS

I have tested.. window.open('http://appery.io', '_blank');

Copied and pasted straight as it is there and will not give me a menu with a done button or back and forward buttons. Something does appear to be working correctly

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

inApp browser / opening in native browser not working as expected - iOS

Are you testing this as binary exported .ipa file on a device?

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

inApp browser / opening in native browser not working as expected - iOS

Could you please share you app with us, we'll test it. And tell us its name please.

James Appleford
Posts: 0
Joined: Wed Jul 09, 2014 11:08 pm

inApp browser / opening in native browser not working as expected - iOS

It is now shared and is called GPS

Return to “Issues”