Page 1 of 3
inApp browser / opening in native browser not working as expected - iOS
Posted: Tue Jan 20, 2015 10:14 am
by James Appleford
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!
inApp browser / opening in native browser not working as expected - iOS
Posted: Tue Jan 20, 2015 11:37 am
by Illya Stepanov
Hi James -
I've tested this code on iOS 7.1.2 and 8.1 and it works correctly - system browser opens URL.
inApp browser / opening in native browser not working as expected - iOS
Posted: Wed Jan 21, 2015 7:54 pm
by James Appleford
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.
inApp browser / opening in native browser not working as expected - iOS
Posted: Wed Jan 21, 2015 9:41 pm
by Illya Stepanov
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?
inApp browser / opening in native browser not working as expected - iOS
Posted: Wed Jan 21, 2015 10:49 pm
by Illya Stepanov
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
inApp browser / opening in native browser not working as expected - iOS
Posted: Thu Jan 22, 2015 8:11 am
by James Appleford
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
inApp browser / opening in native browser not working as expected - iOS
Posted: Thu Jan 22, 2015 8:31 am
by Illya Stepanov
Are you testing this as binary exported .ipa file on a device?
inApp browser / opening in native browser not working as expected - iOS
Posted: Thu Jan 22, 2015 9:34 am
by James Appleford
inApp browser / opening in native browser not working as expected - iOS
Posted: Thu Jan 22, 2015 9:43 am
by Illya Stepanov
Could you please share you app with us, we'll test it. And tell us its name please.
inApp browser / opening in native browser not working as expected - iOS
Posted: Thu Jan 22, 2015 9:46 am
by James Appleford
It is now shared and is called GPS