Issue related to background timer after iOS Update

Hi Everyone,

I have an issue related to the background timer.

I want to allow the users to auto disable and enable the background geo-location via presetting the days & time.

The App has an option where the user can select days of the week such as Monday - Sunday
and can set time range from 12AM - 12PM

Let's say the user selects Monday, Wednesday & Friday
The time range selected is 2PM-6PM

I want to run a background timer, that checks if according to user settings should auto enable or disable geo-location updates in the app.

The issue I'm facing right now, the background timer does not work after 30 seconds when the app is in the background.

Because the app's background timer stops working, I'm unable to enable or disable the setting according to users requirement.

Any suggestion to overcome this issue is much appreciated.

The issue I'm facing right now, the background timer does not work
after 30 seconds when the app is in the background.

Right. Shortly after your app moves to the background it will be suspended by iOS (and any time after that it can then be terminated). This is why you’re timing isn’t firing: None of the code in your app is running.

I want to allow the users to auto disable and enable the background
geo-location

What exactly is “background geo-location” in this context? What API are you using?

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"
Hi Eskimo, thanks for responding to my question.

Your reply provides me with clarity on why things not working.

Your question relating to background geo-location context;

I'm working on a tracking app, and the app should only send the location information to the server only during days and times selected by the app user. This way, the user doesn't have to open the app to enable/disable location updates sent to the server.

I'm working on a tracking app, and the app should only send the
location information to the server only during days and times selected
by the app user.

Right, but what specific API are you using for this? Core Location is many different modes.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"
Issue related to background timer after iOS Update
 
 
Q