This is a big problem for the project I'm working on since the wifi is very spotty.
The project is written in Sencha Touch 1.1 and uses Ext.Ajax.request to make AJAX calls every 10 seconds.
The way I've reproduced this issue is:
- Be connected to wifi
- Open up the PhoneGap app on iOS device
- Walk out of range of wifi
- App crashes
The reverse wifi situation will also cause a crash: Start app when disconnected from wifi and then walk into wifi range.
Now, I'm unsure if the repetitive AJAX calls have anything to do with this, but looking at the previous comment, it seems to be a factor. I'll try and do a test with my AJAX requests off and see if it crashes. Also, in addition to testing on a physical iOS device, I tested the app on the simulator by pulling out and putting back in the ethernet cable. The simulator fired off the online/offline events correctly and did not crash.