Add new remote params#707
Conversation
3a1005c to
14572a6
Compare
14572a6 to
1e6c8b5
Compare
c18f863 to
9758106
Compare
mikechoch
left a comment
There was a problem hiding this comment.
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.
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.
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.
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