Page 1 of 1

window.open(url, '_system', 'location=no'); working on android but not on iOS w/last Library.

Posted: Tue Feb 20, 2018 2:56 pm
by Ole Henrik Oftedal

(JQM App)
On android, it opens the with the url in det default browser,
but on iOS the page opens on the app and there is no way to go back to the app.

This works fine with Libraries 4.1 but when I change to the new 5.0 Libraries I cannot get back to my application again :-(

This seems to me like a bug. Do we have a workaround for this so that I can open an external help link from my app?? (Users have mostly IOS devices).

regards

Ole Henrik Oftedal
Timeflex Systemer AS
https://www.timeflex.no
http://www.timeflex.com

P.S.

The bug/problem can also be reproduced following this tutorial/demo:

https://docs.appery.io/docs/cordova-j...

Switching between Libraries 4.1 and 5.0.


window.open(url, '_system', 'location=no'); working on android but not on iOS w/last Library.

Posted: Wed Feb 21, 2018 9:44 am
by Ole Henrik Oftedal

This was testet on Appery.io Tester. I will try to install app on a real device through Xcode. Could be a bug in the Appery.io tester only.

Edit:
Puhh. It works fine when running the app on a real Iphone:-) My conclusion is that is a bug in Appery IO Tester since it works with app compiled with one library and fails compiled with another (newer version).


window.open(url, '_system', 'location=no'); working on android but not on iOS w/last Library.

Posted: Wed Feb 21, 2018 2:09 pm
by Serhii Kulibaba

Hello,

Have you tried to use the property "location" with the value "yes" instead of "no" here


window.open(url, '_system', 'location=no'); working on android but not on iOS w/last Library.

Posted: Wed Feb 21, 2018 6:28 pm
by Ole Henrik Oftedal

Yes. I have tried both.

Now that I know about the bug, it's no problem for me as long as I know that i works on the real device. But other developers might be very puzzled if they (like me) are trying to make some work-arounds to avoid this situations. As this is both unecessary and time consuming.

This bug is easy reproduceable. See earlier in this thread. You will also experience this in the combination Iphone + Appery IO Tester + open url from a button or a link in a menu. (Open url in a new window function in Builder gui.)


window.open(url, '_system', 'location=no'); working on android but not on iOS w/last Library.

Posted: Wed Feb 21, 2018 9:56 pm
by Illya Stepanov

Hello Ole - thank you for noticing this we will definitely report this to our development team.