Page 1 of 2

InAppBrowser not working correctly in iOS - Possible solution

Posted: Thu Apr 16, 2015 11:49 pm
by Christopher Lee

Cordova's JS file should appear on top of all other JS files.

This will alleviate issues for people having issues with the InAppBrowser not opening for iOS devices when using the window.open('[url=http://mysite.com','blank]http://mysite.com','blank[/url]');

When the cordova javascript file is in the middle, the .ipa file does not produce a browser with the "done" button. Also, xCode produces this error message:
"Failed to load webpage with error: CDVWebViewDelegate: Navigation started when state=1"

When the cordova javascript is moved up towards the top (above underscore.js), it works correctly.

Can you please move that javascript to the top so that we do not need to modify our start html page manually (which contains all the other page code when using jQuery Multipage Template)


InAppBrowser not working correctly in iOS - Possible solution

Posted: Sat Apr 18, 2015 3:17 am
by Illya Stepanov

Hi Christopher -

What particular case using the window.open(); won't work on device? Could you please be more specific.


InAppBrowser not working correctly in iOS - Possible solution

Posted: Sat Oct 03, 2015 11:04 am
by Lars Holtet

I can continue on this one..

On android it works fine, but on ios inappbrowser opens, but it doesnt show any content..

Link looks like this:

window.open('http://www.vegvesen.no/Kjoretoy/Eie+o...', '_blank', 'location=no');


InAppBrowser not working correctly in iOS - Possible solution

Posted: Sat Oct 03, 2015 11:10 am
by Lars Holtet

Seems like iOS will only open "https" ?


InAppBrowser not working correctly in iOS - Possible solution

Posted: Sat Oct 03, 2015 9:44 pm
by Lars Holtet

Solved, this needs to be added to the .plist because of apples new transport security.With these keys you will disable everything. For more info:

http://www.neglectedpotential.com/201...

Code: Select all

 NSAppTransportSecurity 

 NSAllowsArbitraryLoads

InAppBrowser not working correctly in iOS - Possible solution

Posted: Tue Sep 20, 2016 3:54 am
by Deon

Hi
I see these are now part of plist but InApp browser still not working when invoked in Appery Tester.


InAppBrowser not working correctly in iOS - Possible solution

Posted: Tue Sep 20, 2016 12:59 pm
by Illya Stepanov

Hi Deon, please test your code on the actual device.


InAppBrowser not working correctly in iOS - Possible solution

Posted: Wed Sep 21, 2016 1:39 am
by Deon

I am using the Appery tester on an IPhone 6S. So are you saying I have to publish the app before I can test it?


InAppBrowser not working correctly in iOS - Possible solution

Posted: Fri Sep 23, 2016 12:20 pm
by Serhii Kulibaba

You can install the .ipa file directly to the device, e.g. with https://developer.apple.com/testflight/ or upload it to the App Store beta version


InAppBrowser not working correctly in iOS - Possible solution

Posted: Mon Sep 26, 2016 3:09 pm
by Deon

Ok. Are you saying window.open command does not work in tester on apple?