Thank you. That solution did not work for me, but it did lead me down the right path.
Error Domain=NSURLErrorDomain Code=-999 “cancelled”
The fix is to use a plugin like the one mentioned above to allow XHR file URL requests in WebKit. Here’s the plugin that I found that works:
You’ll also need to add the associated preference to your config.xml: <preference name="allowFileAccessFromFileURLs" value="true" />
These two extra steps fix my issues and went from black screen to working iOS app!
I finally got back to iOS development, and had to revisit this thread to get it working again:sweat_smile:
I also discovered another couple of tweaks that I think most everyone making an iOS game will want to add:
Auto hide the “home bar” at the bottom of the screen:
To me that was pretty critical from a UX perspective in a game. It still shows up if you touch near the middle bottom of the screen, but it does fade away now instead of always being there. If you have an older iOS device with a physical home button you might not be familiar with this, but your users will!
Hide the status bar (time/battery/cellular/wifi)
You can add this to your config.xml: