My mobile game runs nicely on Android (not many crashes), but on iOS, especially when exported with Phonegap Build, I have too many crashes! Even on an iPad Mini 2. Is there any precise tips to try to reduce the number of crashes? Should I delete as many images as possible, or should I rather try to deactivate as many event groups as possible, or something else?
I found this thread on the topic, with a reply by Ashley :
Ashley wrote:Crashes (as in the app exits) are usually caused by buggy graphics drivers, or running out of memory. In rare cases it may be a browser bug, but the first two causes are far more likely. There's not much you can do about buggy drivers; most mobile platforms don't allow updates outside of updating the entire OS, which is subject to the carrier/manufacturer approving the update.
If there's a bug in the C2 engine then if the JS code goes wrong it probably won't crash the app. It will probably freeze instead, since the browser engine catches the JS error, halts the script, and then continues running the page. That's useful in web pages but since the C2 engine is all JS then the game logic halts freezing the game then the last frame remains on-screen. If that happens then ideally you'd be able to reproduce it and report it as a bug to us so we can fix it.
My problem is probably memory, as my game runs mostly on only one layout.