-
Notifications
You must be signed in to change notification settings - Fork 27
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
Add rto tracking options update to trackOnce and trackVerified calls #277
Conversation
RadarSDK/Radar.m
Outdated
@@ -161,6 +161,7 @@ + (void)trackOnceWithDesiredAccuracy:(RadarTrackingOptionsDesiredAccuracy)desire | |||
NSArray<RadarGeofence *> *_Nullable nearbyGeofences, RadarConfig *_Nullable config, NSString *_Nullable token) { | |||
if (status == RadarStatusSuccess) { | |||
[[RadarLocationManager sharedInstance] replaceSyncedGeofences:nearbyGeofences]; | |||
[[RadarLocationManager sharedInstance] updateTrackingFromMeta:config.meta]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This config
is nullable so we should check that exists before accessing config.meta
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2 things:
- address the nullable config
- bump versions
@@ -161,6 +161,10 @@ + (void)trackOnceWithDesiredAccuracy:(RadarTrackingOptionsDesiredAccuracy)desire | |||
NSArray<RadarGeofence *> *_Nullable nearbyGeofences, RadarConfig *_Nullable config, NSString *_Nullable token) { | |||
if (status == RadarStatusSuccess) { | |||
[[RadarLocationManager sharedInstance] replaceSyncedGeofences:nearbyGeofences]; | |||
if(config != nil){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
text formatting is off here, see line 162 for correct spacing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
once you fix the text formatting and confirm that you tested this specific version with waypoint, this is good to go
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
We previously only updated the RTO settings with background tracking calls, this PR adds a side-effect to the
trackOnce
andtrackVerified
calls such that any updates to RTO tracking options are saved into settings.QA:
steps:
Follow up question, do we wish to introduce this side effect to the track verified calls and the mock tracking calls too?