You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR implements the permission checking and consent management layer for the Location module. It establishes the foundation for location tracking by providing:
Permission status checking - Query current location permission state without requesting
Tracking enablement - App-level opt-in/opt-out for location tracking
Eligibility checking - Unified API to determine if location tracking can proceed and why not
Cross-Platform Architecture
The public API is designed to be platform-agnostic, enabling wrapper SDKs (React Native, Flutter, Expo) to use a single interface without platform-specific branching.
Below you will find the list of the latest versions of the sample apps. It's recommended to always download the latest builds of the sample apps to accurately test the pull request.
✅ All modified and coverable lines are covered by tests. ⚠️ Please upload report for BASE (feat/real-time-location@08d0c47). Learn more about missing BASE report.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR implements the permission checking and consent management layer for the Location module. It establishes the foundation for location tracking by providing:
Cross-Platform Architecture
The public API is designed to be platform-agnostic, enabling wrapper SDKs (React Native, Flutter, Expo) to use a single interface without platform-specific branching.
┌──────────────
│ WRAPPER SDKs │
│ (React Native / Flutter / Expo) │
└───────────────
│
┌───────────▼
│ UNIFIED PUBLIC API │
│ │
│ • permissionStatus() │
│ • setTrackingEnabled()│
│ • canTrackLocation() │
│ • getTrackingEligibility() │
└───────────
│
┌─────────▼
│ ANDROID (internal)│
│ • FusedLocation │
│ • GMS checks │
│ • Permission APIs │
└─────────
Test Plan
Note
Establishes the location module’s permission/consent foundation and eligibility checks with a unified API for wrappers.
ModuleLocationwithpermissionStatus(),isLocationServicesEnabled(),setLocationTrackingEnabled(),isLocationTrackingEnabled(),canTrackLocation(),getTrackingEligibility(),getRequiredPermissions(), andonPermissionResult(); wires init to SDK reset eventsLocationComponentprovidingLocationPreferenceStore,LocationPermissionsHelper, andTrackingEligibilityChecker; reset clears stored stateLocationPermissionStatus,LocationTrackingEligibility(Eligible/NotEnabled/PermissionRequired/LocationServicesDisabled)LocationError(PermissionDenied/TrackingDisabled/LocationServicesDisabled/ServiceUnavailable/Timeout/Unknown)LocationPreferenceStore; evaluate tracking viaTrackingEligibilityCheckerWritten by Cursor Bugbot for commit 9d30604. This will update automatically on new commits. Configure here.