Cordova App Hanging During Startup on iOS 10

Cordova app hanging during startup on iOS 10

OK, I found the problem and the solution thanks to this post:

It seems that iOS 10 requires additional entries in the Content-Security-Policy meta tag, namely gap: and file:. After adding these, my Content-Security-Policy looks like this:


And the app starts up and works fine on iOS 10.

Hope this helps others.

Ionic Cordova camera issue with ios 10

I confirm this is solved in Cordova app hanging during startup on iOS 10 as Sven Sönnichsen indicated in the comment to the question.

Add gap://ready file: to the Content-Security-Policy meta tag in index.html.


This was also addressed here: https://forums.adobe.com/thread/2211591 where Allsetra ICT said that changing the meta tag to this simple form also worked (although I did not verified it).


Adobe PhoneGap - iOS app not loading until swipe up for Control Center

Since this affects only iOS 10, it sounds the issue you're encountering is related to the strict application of Content Security Policy rules to UIWebView, which was added in iOS 10. By opening the Control Centre you are placing your app in the background, then dismissing the Control Centre resumes the app, which causes the issue to go away.

See this question and answer for a full explanation and solution, but in a nutshell make sure you have a Content-Security-Policy meta tag in your index.html and make sure it contains entries for gap: and file:, for example:


Meteor/Cordova/Phonegap iOS app not working when deployed to production

Looks like after updating to meteor 0.9.4 (which apparently includes improved Cordova/Phonegap support) my issue has been resolved.



Related Topics



Leave a reply



Submit