BranchMetrics / android-branch-deep-linking-attribution

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.
https://docs.branch.io/pages/apps/android/
MIT License
395 stars 155 forks source link

[SDK-2459] Implement Consumer Protection Preferences #1206

Open nsingh-branch opened 1 week ago

nsingh-branch commented 1 week ago

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 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.

Reviewer Checklist (To be checked off by the reviewer only)

cc @BranchMetrics/saas-sdk-devs for visibility.