Skip to content

Return setLocationShared and setRequiresUserPrivacyConsent methods#1124

Merged
Jeasmine merged 2 commits intomajor_release_4.0.0from
fix/return-remote-params-methods
Aug 27, 2020
Merged

Return setLocationShared and setRequiresUserPrivacyConsent methods#1124
Jeasmine merged 2 commits intomajor_release_4.0.0from
fix/return-remote-params-methods

Conversation

@Jeasmine
Copy link
Copy Markdown
Contributor

@Jeasmine Jeasmine commented Aug 21, 2020

  • Keep remote param methods logic
  • Add logic to avoid user methods override remote params when available

for reference: OneSignal/OneSignal-iOS-SDK#707


This change is Reviewable

  * Keep remote param methods logic
  * Mark as deprecated setLocationShared and setRequiresUserPrivacyConsent
@Jeasmine Jeasmine requested a review from jkasten2 August 21, 2020 21:49
Comment thread OneSignalSDK/onesignal/src/main/java/com/onesignal/OneSignal.java Outdated
Comment thread OneSignalSDK/onesignal/src/main/java/com/onesignal/OneSignal.java Outdated
@Jeasmine Jeasmine requested a review from andrespelaezp August 27, 2020 16:50
@Jeasmine Jeasmine force-pushed the fix/return-remote-params-methods branch 2 times, most recently from 6389ee8 to 04f55f8 Compare August 27, 2020 18:11
  * Avoid remote params being override by user
  * Add test for new logic
@Jeasmine Jeasmine force-pushed the fix/return-remote-params-methods branch from 04f55f8 to a582c80 Compare August 27, 2020 19:23
Copy link
Copy Markdown
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.

Looks good to me!

Due note that if the presents of a remote param overrides the local value then the backend will need to allow for 3 options.

  • undefined ("Not Set", driven by local value)
  • Enabled
  • Disabled

@Jeasmine It this wasn't noted in this PR but want to confirm this is what is intended by this PR.

@Jeasmine Jeasmine merged commit 63a9377 into major_release_4.0.0 Aug 27, 2020
@Jeasmine Jeasmine deleted the fix/return-remote-params-methods branch August 27, 2020 22:26
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.

2 participants