Battery drain when using CoreLocation Significant Location Monitoring & CoreBluetooth

At the end of the day, Apple’s suggestion of removing location from UIBackgroundModes fixed our battery drain issue.

In order to still get locations in the background we had to wrap the [locationManager startLocationUpdates] & [locationManager stopLocationUpdates] calls with:

[[UIApplication sharedApplication] beginBackgroundTaskWithExpirationHandler];
[[UIApplication sharedApplication] endBackgroundTask:];

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)