chore(geofence): add support for geofencing feature#620
Open
mrehan27 wants to merge 9 commits into
Open
Conversation
Wire the optional geofence module without enabling behavior yet: build flags (customerio_geofence_enabled gradle property, geofence podspec subspec), the geofence opt-in config key, and the exported CustomerIOGeofence class. Enabling geofence also pulls in Location, which geofence depends on, and turns on the Location build flag on both platforms so geofence-only builds get the full Location module. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…tion (#612) Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…n screen (#614) Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Contributor
Sample app builds 📱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. |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit ead1d9c. Configure here.
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
mahmoud-elmorabea
approved these changes
Jul 26, 2026
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.

Summary
Adds on-device geofencing to the React Native SDK, merging
feature/geofence-on-deviceintomain. Ported to match the native iOS/Android and Flutter SDKs: an opt-in geofence module (implies Location),CustomerIO.geofence.refreshFromCurrentLocation()+locationModeconfig, iOSallowBackgroundDelivery, and example-app integration.Changes
Includes previously approved/merged PRs (oldest first):
Note
Native version pins (iOS
4.7.0/ Android4.20.0) land via #609 before this merges — do not merge until the geofence-enabled native SDKs are released.Note
Medium Risk
Touches native init, optional Gradle/CocoaPods modules, and background location/geofence behavior; misconfiguration could affect builds or location privacy expectations, but changes are gated behind explicit opt-in flags.
Overview
Adds an opt-in geofence capability aligned with the existing optional Location module: build-time flags (
customerio_geofence_enabled/ Podgeofencesubspec), runtimegeofenceonCioConfig, andCustomerIO.geofence.refreshFromCurrentLocation()via a new TurboModule.Enabling geofence also enables Location on both platforms (native deps,
CIO_LOCATION_ENABLED, and init wiring so location registers when onlygeofenceis configured). Init acceptsgeofence.locationMode(AUTOMATIC/MANUAL) and iOSios.allowBackgroundDelivery(defaults on when geofence is configured). iOS sample callsGeofenceModule.bootstrapForBackgroundDeliveryon launch for cold-wake delivery without JS.The example app turns on geofence, adds background location permissions/plist entries, and expands the location screen with background-permission UX that calls
refreshFromCurrentLocationafter grants.Reviewed by Cursor Bugbot for commit 6820128. Bugbot is set up for automated code reviews on this repo. Configure here.