Understanding the backgroundRefreshStatus property

I have an iOS app to update locations in the background. I am listening to notification UIApplicationBackgroundRefreshStatusDidChangeNotification

and checking the property backgroundRefreshStatus

. About the property, the documentation says:

This property reflects whether the application can run in the background to handle background behavior, such as handling background location updates and performing background captures.

I did some tests running the app in the simulator, and when I turned off the Background App Refresh feature for the app in Settings, I get a status change notification, but I see those locations are being saved updated. I expected all background tasks to stop if the user "Background App Refresh" is disconnected by the user ... is this an emulator issue / bug? Or should the developer stop background tasks anyway?

thank

+3


source to share





All Articles