Christopher Lee
Posts: 0
Joined: Wed Apr 15, 2015 10:25 pm

InAppBrowser not working correctly in iOS - Possible solution

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)

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

InAppBrowser not working correctly in iOS - Possible solution

Hi Christopher -

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

Lars Holtet
Posts: 0
Joined: Sun Nov 24, 2013 5:47 pm

InAppBrowser not working correctly in iOS - Possible solution

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');

Lars Holtet
Posts: 0
Joined: Sun Nov 24, 2013 5:47 pm

InAppBrowser not working correctly in iOS - Possible solution

Seems like iOS will only open "https" ?

Lars Holtet
Posts: 0
Joined: Sun Nov 24, 2013 5:47 pm

InAppBrowser not working correctly in iOS - Possible solution

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
Deon
Posts: 0
Joined: Sun Jun 30, 2013 6:00 am

InAppBrowser not working correctly in iOS - Possible solution

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

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

InAppBrowser not working correctly in iOS - Possible solution

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

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

InAppBrowser not working correctly in iOS - Possible solution

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?

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

InAppBrowser not working correctly in iOS - Possible solution

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

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

InAppBrowser not working correctly in iOS - Possible solution

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

Return to “Issues”