-
Notifications
You must be signed in to change notification settings - Fork 267
Add new remote params #707
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
Conversation
3a1005c to
14572a6
Compare
14572a6 to
1e6c8b5
Compare
iOS_SDK/OneSignalSDK/UnitTests/Shadows/OneSignalClientOverrider.h
Outdated
Show resolved
Hide resolved
iOS_SDK/OneSignalSDK/UnitTests/Shadows/OneSignalClientOverrider.h
Outdated
Show resolved
Hide resolved
iOS_SDK/OneSignalSDK/UnitTests/Shadows/OneSignalClientOverrider.m
Outdated
Show resolved
Hide resolved
iOS_SDK/OneSignalSDK/UnitTests/Shadows/OneSignalClientOverrider.m
Outdated
Show resolved
Hide resolved
c18f863 to
9758106
Compare
mikechoch
left a comment
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.
LGTM, once the comment is resolved
| if (result[IOS_RECEIVE_RECEIPTS_ENABLE] != (id)[NSNull null]) | ||
| [OneSignalUserDefaults.initShared saveBoolForKey:OSUD_RECEIVE_RECEIPTS_ENABLED withValue:[result[IOS_RECEIVE_RECEIPTS_ENABLE] boolValue]]; | ||
|
|
||
| if (result[IOS_LOCATION_SHARED]) |
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 doesn't match the logic we have for Android. We need to check for key presence here.
See this commit on Android:
https://github.com/OneSignal/OneSignal-Android-SDK/pull/1124/files#diff-8f1d87ed84bc5cc2e615dcfb826df87bR2522
And this comment for the remote param override logic we want for fallback support.
OneSignal/OneSignal-Android-SDK#1124 (review)
Lastly let's make sure a tests covers all 3 states of the remote param can be define. Not present, true, or false.
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.
Added matched logic with Android, we will need the delayed task controller to match 100% the logic, on iOS we are not waiting for remote params due to this missing behavior
jkasten2
left a comment
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.
Need to match Android logic for remote param fallback support for all params. See my comment above.
cd0cb4e to
3312868
Compare
3312868 to
94830c2
Compare
* Add locationShared remote param * Add requiresUserPrivacyConcent remote param * Keep public method * Add tests for new getters
94830c2 to
5e93fb5
Compare
This change is