Skip to content

Conversation

@Jeasmine
Copy link
Contributor

@Jeasmine Jeasmine commented Jul 6, 2020

  • Add locationShared remote param
  • Add requiresUserPrivacyConcent remote param
  • Keep public method
  • Add tests for new getters

This change is Reviewable

@Jeasmine Jeasmine force-pushed the feature/remote-params branch from 3a1005c to 14572a6 Compare July 22, 2020 15:46
@Jeasmine Jeasmine changed the base branch from master to major_release_3.0.0 July 22, 2020 15:46
@Jeasmine Jeasmine force-pushed the feature/remote-params branch from 14572a6 to 1e6c8b5 Compare July 22, 2020 15:47
@Jeasmine Jeasmine force-pushed the feature/remote-params branch 2 times, most recently from c18f863 to 9758106 Compare August 11, 2020 18:46
@Jeasmine Jeasmine requested review from emawby and jkasten2 August 12, 2020 18:05
Copy link
Contributor

@mikechoch mikechoch left a 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])
Copy link
Member

@jkasten2 jkasten2 Aug 28, 2020

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.

Copy link
Contributor Author

@Jeasmine Jeasmine Sep 1, 2020

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

Copy link
Member

@jkasten2 jkasten2 left a 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.

@Jeasmine Jeasmine changed the title Add new remote params WIP - Add new remote params Aug 31, 2020
@Jeasmine Jeasmine force-pushed the feature/remote-params branch 3 times, most recently from cd0cb4e to 3312868 Compare September 1, 2020 16:20
@Jeasmine Jeasmine changed the title WIP - Add new remote params Add new remote params Sep 1, 2020
@Jeasmine Jeasmine force-pushed the feature/remote-params branch from 3312868 to 94830c2 Compare September 1, 2020 17:13
   * Add locationShared remote param
   * Add requiresUserPrivacyConcent remote param
   * Keep public method
   * Add tests for new getters
@Jeasmine Jeasmine force-pushed the feature/remote-params branch from 94830c2 to 5e93fb5 Compare September 1, 2020 17:54
@Jeasmine Jeasmine requested review from emawby and jkasten2 September 2, 2020 21:06
@Jeasmine Jeasmine merged commit c0ade33 into major_release_3.0.0 Sep 2, 2020
@Jeasmine Jeasmine deleted the feature/remote-params branch September 2, 2020 22:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants