Your account has been flagged due to frequent spamming, you are not permitted to post comments. Contact firstname.lastname@example.org.
Ajax calls start failing if my app is inactive; otherwise they work just fine on WiFi
about 7 years agoAnswer it
about 7 years ago
As an iOS developer I would suggest you to run all ajax related calls when app is in background state. If app is inactive or terminated by iOS then you can not run ajax call. For apps that support background execution, "applicationWillTerminate" method is generally not called when the user quits the app because the app simply moves to the background in that case. However, this method may be called in situations where the app is running in the background (not suspended) and the system needs to terminate it for some reason.
If the app is killed or terminated then you can not do anything.