Skip to content

fix iOS background location permission state and requesting#172

Merged
Alex009 merged 2 commits intoicerockdev:developfrom
ryancfogarty:patch-ios-background-location-permission-state
Aug 18, 2025
Merged

fix iOS background location permission state and requesting#172
Alex009 merged 2 commits intoicerockdev:developfrom
ryancfogarty:patch-ios-background-location-permission-state

Conversation

@ryancfogarty
Copy link
Copy Markdown
Contributor

@ryancfogarty ryancfogarty commented Jun 25, 2025

Currently moko-permissions doesn't work for iOS when checking the state of background location permissions or requesting those permissions.

This change fixes it so that when you request background location, if the authorizationStatus is not always, it will request always authorization. Additionally, if you check that state of background location permission and the authorization status is not always it will return NotGranted.

@ryancfogarty
Copy link
Copy Markdown
Contributor Author

@Alex009 I couldn't find an open issue for this bug, happy to create one if required for tracking purposes.

@Alex009 Alex009 changed the base branch from master to develop June 26, 2025 11:22
@ryancfogarty ryancfogarty force-pushed the patch-ios-background-location-permission-state branch from 1f77d78 to 180dd9f Compare June 26, 2025 15:47
@ryancfogarty
Copy link
Copy Markdown
Contributor Author

Rebased onto develop

@ryancfogarty ryancfogarty changed the title fix iOS background location permission state fix iOS background location permission state and requesting Jun 27, 2025
@ryancfogarty
Copy link
Copy Markdown
Contributor Author

@Alex009 Added another commit to fix requesting background location. We need to call requestAlwaysAuthorization on the CLLocationManager

@Alex009 Alex009 added this to the 0.20.0 milestone Jul 6, 2025
@Alex009 Alex009 merged commit a512e3f into icerockdev:develop Aug 18, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants