Any method to wakeup application from suspended state to background every 5 - 10 mins

195 Views Asked by At

I am working on project where I have to track user location, I am using background modes to get location in background but when application is in background and user turns off his location then I have to tell server "Location is turned off" and "Application is in background" every 5 mins. Application is supposed to work constantly with the server even when app is background.

(APPLICATION IS IN BACKGROUND)

1)Silent Push Notifications works fine and I call my desired API.

2)BackGround Location works fine.

Problems below: When User turns off location application doesn't work in background.

(APPLICATION IS SUSPENDED)

1)Silent Push notification works rarely (Twice in an hour) content-avaiable = 1 and priority high.

2)Sound notification are delivered but API is not called every time.

3)Tried Background Fetch but BackGroundFetch also does not guarantee to call API every 5 mins.

Any solution to keep calling API in the background every 5 mins.

0

There are 0 best solutions below