The Branch Android SDK for deep linking and attribution. Branch helps mobile apps grow with deep links / deeplinks that power paid acquisition and re-engagement campaigns, referral programs, content sharing, deep linked emails, smart banners, custom user onboarding, and more.
Added a new method for setting the consumer protection preference, setConsumerProtectionPreference. This value can be set and changed at any time, but persists across sessions. This change also deprecated the disableTracking() method since setting the preference to TRACKING_DISABLED will perform the same logic.
Testing Instructions
Use the new method or the new testbed "Consumer Protection Preference" button to change the preference and observe the protection_preference field change in each request.
Risk Assessment [MEDIUM]
It deprecated a frequently used method and replaces it with a new one with some shared logic.
[x] I, the PR creator, have tested — integration, unit, or otherwise — this code.
Reviewer Checklist (To be checked off by the reviewer only)
Reference
SDK-2459 -- [Android] Implement Consumer Protection Preferences
Description
Added a new method for setting the consumer protection preference, setConsumerProtectionPreference. This value can be set and changed at any time, but persists across sessions. This change also deprecated the
disableTracking()
method since setting the preference toTRACKING_DISABLED
will perform the same logic.Testing Instructions
Use the new method or the new testbed "Consumer Protection Preference" button to change the preference and observe the
protection_preference
field change in each request.Risk Assessment [
MEDIUM
]It deprecated a frequently used method and replaces it with a new one with some shared logic.
Reviewer Checklist (To be checked off by the reviewer only)
cc @BranchMetrics/saas-sdk-devs for visibility.