This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CB-7556 - iOS: Clearing all Watches does not stop Location Services
iOS shows a little arrow in the status bar if location services are in use. When you set a watch on Location Manager, it starts tracking position, and the arrow symbol appears. However, when that watch is cleared, no command to Location Manager is sent to stop tracking, so the arrow stays visible, even though in reality, the app is not using location services. My guess is that this also impacts battery life to some extent, especially if your iOS app has background location enabled. This fix would automatically stop tracking location once all watched are cleared, so that the arrow symbol in the iOS status will disappear. Tested on iOS 7.1.2. Signed-off-by: Shazron Abdullah <email@example.com>
- Loading branch information
Showing 1 changed file with 3 additions and 0 deletions.