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
ios background core-location uiapplicationdelegate uiapplication


source to share


No one has answered this question yet

Check out similar questions:

216
Will iOS run my app in the background if it is forcibly closed by the user?
181
How to get background location update every n minutes in iOS app?
102
Behavior for significant location API on completion / pause?
90
IOS background location updates periodically
40
Detecting custom settings for background app refresh in iOS 7
3
0x8badf00d Crash after listening in the background
1
Disable background location services in iOS
1
Application not running in background when restarting iPhone
1
How to continue tracking iOS location even after the app is killed?
0
Location updates not received in Fetch background



All Articles
Loading...
X
Show
Funny
Dev
Pics