chore: Implement capability to request/stop location updates#997
Open
mahmoud-elmorabea wants to merge 1 commit intofeature/real-time-locationfrom
Open
chore: Implement capability to request/stop location updates#997mahmoud-elmorabea wants to merge 1 commit intofeature/real-time-locationfrom
mahmoud-elmorabea wants to merge 1 commit intofeature/real-time-locationfrom
Conversation
Sample app builds 📱Below you will find the list of the latest versions of the sample apps. |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## feature/real-time-location #997 +/- ##
=============================================================
Coverage ? 67.31%
=============================================================
Files ? 191
Lines ? 9908
Branches ? 0
=============================================================
Hits ? 6670
Misses ? 3238
Partials ? 0 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
SDK binary size reports 📊SDK binary size of this PRSDK binary size diff report vs. main branch |
0c1fa8a to
4f68f57
Compare
Base automatically changed from
location-set-sample-app
to
feature/real-time-location
February 12, 2026 17:13
f463eac to
424d6bc
Compare
424d6bc to
cdb130e
Compare
cdb130e to
660e719
Compare
660e719 to
405f58e
Compare
405f58e to
37fba6b
Compare
37fba6b to
00ab3a5
Compare
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Adds one-shot location to the Location module: request a single fix and send it to Customer.io, with the ability to cancel an in-flight request.
API
requestLocationUpdateOnce()– Single location update; respects config and permission; one at a time (new call cancels in-flight); runs in background. App must request permission.stopLocationUpdates()– Cancels any in-flight request.Notes: One-shot only; no continuous updates. Default granularity is coarse. Permission is the host app’s responsibility.
Note
Medium Risk
Touches Core Location integration and concurrency/cancellation behavior (actors, tasks, continuations), which can be fragile and affect runtime location delivery; scope is contained to one-shot requests with tests added.
Overview
Adds a new one-shot location flow to the Location module:
LocationServices.requestLocationUpdateOnce()triggers a background task to fetch a single coarse location fix and posts aTrackLocationEvent, whilestopLocationUpdates()cancels any in-flight request.Introduces a
LocationProvidingabstraction with aCoreLocationProvideractor + delegate proxy to safely wrapCLLocationManager(main-thread initialization enforced inCustomerIO.initializeLocation) and adds new location/authorization snapshot types plus logging and test coverage around success, disabled tracking, permission checks, and cancellation.Written by Cursor Bugbot for commit 00ab3a5. This will update automatically on new commits. Configure here.