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

[ios] Avoid the blue background location status bar #3671

Merged
merged 1 commit into from
Jan 25, 2016

Conversation

friedbunny
Copy link
Contributor

Apps with whenInUse location permission will show a blue status bar when they continue to use location services after leaving the foreground. This is worrying and to be avoided, so let's disable telemetry location services in this situation.

Fixes #2945, refs #3641.

/cc @boundsj @1ec5 @jfirebaugh @mikemorris

@friedbunny friedbunny added bug iOS Mapbox Maps SDK for iOS telemetry Integration with Mapbox Telemetry libraries labels Jan 23, 2016
@friedbunny friedbunny self-assigned this Jan 23, 2016
@friedbunny friedbunny added this to the ios-v3.1.0 milestone Jan 23, 2016
@friedbunny
Copy link
Contributor Author

I looked into listening for UIApplication background/foreground notifications, but we already trigger validate and validateUpdatingLocation in the necessary cases.

@mikemorris
Copy link
Contributor

This would disable telemetry collection even when the app itself is triggering the blue bar, right?

@friedbunny
Copy link
Contributor Author

Yup, we have no way of knowing if another location manager elsewhere in the app is still active.

@1ec5
Copy link
Contributor

1ec5 commented Jan 25, 2016

👍

Apps with `whenInUse` location permission will show a blue status bar
when they continue to use location services after leaving the
foreground. This is worrying and to be avoided, so let's disable telemetry
location services in this situation.

Fixes #2945
@friedbunny friedbunny force-pushed the fb-telemetry-blue-bar-be-gone-2945 branch from 77500e6 to 9418f9a Compare January 25, 2016 19:59
@friedbunny
Copy link
Contributor Author

Rebased with an eye to merging. We'll revisit ways to better piggyback in the future, but for now let's err on the side of not being the sole cause of annoyance to users.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug 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.

4 participants