I'm trying to build an app for iOS. On the initial app load (when you first click on the icon for example), the deviceready event is not being fired.
However, when you minimize the app (or get it to lose focus) e.g. by clicking the iPhone button, and then go back to the app, then the deviceready event is fired.
Anyone know what is going on?
I tried including the Content-Security-Policy header according to this post, but it the problem still persists.
It looks like you have two Content-Security-Policy meta tags declared, probably causing some issues.