Skip to content

feat: add foreground location nudge API for fast-tracked region checks#9

Merged
nighthawk merged 9 commits intomainfrom
feature/foreground-updates
Mar 20, 2026
Merged

feat: add foreground location nudge API for fast-tracked region checks#9
nighthawk merged 9 commits intomainfrom
feature/foreground-updates

Conversation

@nighthawk
Copy link
Member

  • add handleForegroundLocationUpdate(_:) to let foreground apps push live location into GeoMonitor
  • add configurable nudge thresholds in Config (accuracy, minimum distance, minimum interval)
  • reuse one duplicate-suppression path for both manual and region-enter events
  • refactor current-area monitoring to support nudge-driven updates without extra location fetches
  • add unit coverage for foreground nudge throttling (testShouldProcessForegroundNudge)

And bump requirements to iOS 16+ and Swift 6.1+
- add handleForegroundLocationUpdate(_:) to let foreground apps push live location into GeoMonitor
- add configurable nudge thresholds in Config (accuracy, minimum distance, minimum interval)
- reuse one duplicate-suppression path for both manual and region-enter events
- refactor current-area monitoring to support nudge-driven updates without extra location fetches
- add unit coverage for foreground nudge throttling (testShouldProcessForegroundNudge)
@nighthawk nighthawk added the enhancement New feature or request label Mar 3, 2026
- New foreground-related enum values for better logging
- Fetch regions also on foreground triggers
- Ignore foreground update with poor accuracy
- Lower threshold
Base automatically changed from feature/config to main March 5, 2026 00:44
@nighthawk nighthawk marked this pull request as draft March 5, 2026 01:04
@nighthawk nighthawk self-assigned this Mar 17, 2026
@nighthawk nighthawk requested a review from Jacttis March 17, 2026 01:08
@nighthawk nighthawk marked this pull request as ready for review March 17, 2026 01:08
Copy link

@Jacttis Jacttis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@nighthawk nighthawk merged commit 170e4fd into main Mar 20, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants