Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable background updates when NSLocationWhenInUseUsageDescription is…
… set (#20911) Summary: Location updates are not working in background when user allows **When in use authorization**, but works when user allows **Always allow**. In Geolocation/RCTLocationObserver.m, setAllowsBackgroundLocationUpdates are set only for **Always allow** case, but native iOS allows us to setAllowsBackgroundLocationUpdates even for **When in use authorization**. Solution: setAllowsBackgroundLocationUpdates is now set for both cases. [iOS] [Fixed] RCTLocationObserver - Enable background location updates when NSLocationWhenInUseUsageDescription is set Pull Request resolved: #20911 Differential Revision: D13891852 Pulled By: cpojer fbshipit-source-id: 5aae8dc12a147e7bed688807f34466b0f5a69344
- Loading branch information