-
Notifications
You must be signed in to change notification settings - Fork 31
Shicheng/improve sync logic 2 #492
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
ShiCheng-Lu
wants to merge
42
commits into
master
Choose a base branch
from
shicheng/improve-sync-logic-2
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
42 commits
Select commit
Hold shift + click to select a range
4fe50b4
keep existing regions and notifications when possible
ShiCheng-Lu ff06d8b
notifications remaining
ShiCheng-Lu 7b10532
fix duplicate synced notification issues
ShiCheng-Lu 2b5711e
clean up logs
ShiCheng-Lu 2544640
cleanup
ShiCheng-Lu 4d729af
cleanup
ShiCheng-Lu b1b8eaf
cleanup
ShiCheng-Lu c515bd9
add semaphore for editing notifications
ShiCheng-Lu f168f1a
keep beacon notifications
ShiCheng-Lu 6a2a969
bump version
ShiCheng-Lu 0ed4ef4
.
ShiCheng-Lu 0be314f
.
ShiCheng-Lu 605e9e6
add gpx for testing
ShiCheng-Lu f8edf70
.
ShiCheng-Lu 2176f14
initialize on tests tab
ShiCheng-Lu 606aeb2
only track first 19 regions
ShiCheng-Lu db51a3a
early break on loop
ShiCheng-Lu 4d3f7c0
Merge branch 'master' into shicheng/improve-sync-logic
ShiCheng-Lu 035c86b
Merge branch 'master' into shicheng/improve-sync-logic
ShiCheng-Lu a35ea7f
sync logic in swift
ShiCheng-Lu 1bf9666
revert objC impl to old, and use new version in swift
ShiCheng-Lu c5afd9f
add back Indoors
ShiCheng-Lu 3fcd1e9
revert beacon manager
ShiCheng-Lu ae27893
make RadarLocationManagerSwift singleton
ShiCheng-Lu 0aed520
reset NotificationHelper
ShiCheng-Lu 96a28e1
feature flag
ShiCheng-Lu b13ab07
better comparison on notification request
ShiCheng-Lu c6f31b9
re-run test?
ShiCheng-Lu b92f01c
logs and events in UI
ShiCheng-Lu 308a81a
clean up
ShiCheng-Lu 40d978e
Merge branch 'master' into shicheng/improve-sync-logic-2
ShiCheng-Lu 0d0aa4c
add geofence metadata that allows it to skip nearby sync
ShiCheng-Lu 9e2e6d5
don't notify on exit
ShiCheng-Lu 5b65c2f
a bit more logging
ShiCheng-Lu 20475fb
log the list of pending notifications at once
ShiCheng-Lu 8dd90cb
why dust thou stall
ShiCheng-Lu e8ffc5a
Revert "why dust thou stall"
ShiCheng-Lu 480cec6
Merge branch 'master' into shicheng/improve-sync-logic-2
ShiCheng-Lu df8b5c8
logs
ShiCheng-Lu f2aa5c9
beta version
ShiCheng-Lu d2227e9
update indoor version
ShiCheng-Lu 857a815
beta 2
ShiCheng-Lu File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,52 @@ | ||
| // | ||
| // DebugView.swift | ||
| // Example | ||
| // | ||
| // Created by ShiCheng Lu on 10/22/25. | ||
| // Copyright © 2025 Radar Labs, Inc. All rights reserved. | ||
| // | ||
|
|
||
| import SwiftUI | ||
| import RadarSDK | ||
|
|
||
| struct DebugView: View { | ||
| @StateObject var state: ViewState | ||
|
|
||
| var regionListFont = { | ||
| if #available(iOS 15.0, *) { | ||
| Font.system(size: 12).monospaced() | ||
| } else { | ||
| Font.system(size: 12) | ||
| } | ||
| }() | ||
|
|
||
| let timer = Timer.publish(every: 0.5, on: .main, in: .common).autoconnect() | ||
|
|
||
| var body: some View { | ||
| VStack { | ||
| Text("Monitoring regions: \(state.monitoringRegions.count)") | ||
| List(state.monitoringRegions, id: \.self) { region in | ||
| HStack { | ||
| Text(region.identifier).font(regionListFont) | ||
| Button("X") { | ||
| CLLocationManager().stopMonitoring(for: region) | ||
| } | ||
| } | ||
| } | ||
|
|
||
| Text("Pending notifications: \(state.pendingNotifications.count)") | ||
| List(state.pendingNotifications, id: \.self) { notification in | ||
| HStack { | ||
| Text(notification.identifier).font(regionListFont) | ||
| Button("X") { | ||
| UNUserNotificationCenter.current().removePendingNotificationRequests(withIdentifiers: [notification.identifier]) | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
|
|
||
| #Preview { | ||
| DebugView(state: ViewState()) | ||
| } |
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
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| Pod::Spec.new do |s| | ||
| s.name = 'RadarSDK' | ||
| s.version = '3.23.4' | ||
| s.version = '3.24.1-beta.2' | ||
| s.summary = 'iOS SDK for Radar, the leading geofencing and location tracking platform' | ||
| s.homepage = 'https://radar.com' | ||
| s.author = { 'Radar Labs, Inc.' => '[email protected]' } | ||
|
|
||
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.