I have iOS app (written by swift) which sends user location(for emergency situation) to the server. When I get new location from device , I send it to server, if there is no internet connection maybe I lost user location, Can I schedule this request? In other words is there a service which guarantee sends this information to server when internet connection will be available? I use Geofence , I am not in background mode , but i can get event when I entered new region
Asked
Active
Viewed 256 times
0
-
3You can save the location as a property to one of your objects, and send it when the internet connection comes back – Cristik Jan 21 '16 at 13:58
-
Yes i can, but there is not event when the internet connection comes back in background mode – javagc Jan 21 '16 at 14:01
-
But you can try to send it one time per minute until sent – Kyrylo Polezhaiev Jan 21 '16 at 14:03
-
1@javagc if you need need also in background, then please update your question accordingly, otherwise it's an incomplete one. – Cristik Jan 21 '16 at 14:05
-
Check out the plist key - “Application does not run in background” – Matt Le Fleur Jan 21 '16 at 14:06
-
Possible duplicate of [Notification when Internet became available on iOS](http://stackoverflow.com/questions/19733536/notification-when-internet-became-available-on-ios) – fishinear Jan 21 '16 at 14:20
-
No . it is not same question . reachability does not work when user uses other app – javagc Jan 21 '16 at 14:37