-
Notifications
You must be signed in to change notification settings - Fork 693
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable always
location permissions and background location
#190
Comments
Technically you can use always location permissions... just not with React-Native's geolocation implementation. You can however use third party ones like https://github.com/timfpark/react-native-location. The catch is in the JS side of things you will not be able to execute code while the screen is off (due to the bug you point out). However since Mapbox is actually running natively anything that it does internally upon location updates can still execute it just won't trigger any calls across the RN bridge meaning any custom logic a user may have on location updates won't execute. Given that Mapbox's internal location update logic would be executing does that meet the requirements of the ToS and mobile telemtry? |
Requesting always access is one thing, but the request will never succeed unless |
What is preventing you from adding that to the info.plist? I have added that and it works as expected. |
Is this still the case? I can't find that requirement in the ToS. Also, from the iOS docs:
Which leads me to believe it's acceptable to just use |
You’re correct, our ToS has changed since the issue was originally filed. Furthermore, the upstream issue was fixed in facebook/react-native#5093. |
Fixed android images with expressions
Mapbox terms of service and mobile telemetry require that
always
location permissions be granted and background location be enabled for most developers' apps.On iOS, this is blocked by facebook/react-native#1506 — react-native currently will only ever ask for
whenInUse
permissions./cc @bsudekum @mapbox/mobile
The text was updated successfully, but these errors were encountered: