-
Ajax calls start failing if my app is inactive; otherwise they work just fine on WiFi
over 8 years ago
-
over 8 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.
Happy Coding!!
-
1 Answer(s)