Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Disable implicit location updating in background #3137

Closed
wants to merge 1 commit into from
Closed

Disable implicit location updating in background #3137

wants to merge 1 commit into from

Conversation

maciekish
Copy link
Contributor

If the location mode is added to UIBackgroundModes in an apps Info.plist the blue "Appname is using your location" bar never goes away after pressing the home button on iOS 8.1. This happens even if you set showsUserLocation = NO because it's not the MGLMapView that causes it, but MGLMapBoxEvents.

This fixes it by checking if the app is backgrounded in MGLMapboxEvents.m

@1ec5 1ec5 added iOS Mapbox Maps SDK for iOS telemetry Integration with Mapbox Telemetry libraries labels Nov 26, 2015
@friedbunny
Copy link
Contributor

Thanks for the pull request, we hit this in #3671.

@friedbunny friedbunny closed this Feb 2, 2016
@maciekish maciekish deleted the background-location branch February 7, 2016 10:30
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
iOS Mapbox Maps SDK for iOS telemetry Integration with Mapbox Telemetry libraries
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants