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

[WIP] [SDK-2323] Support Android Attribution Reporting API #1192

Closed nsingh-branch closed 1 week ago

nsingh-branch commented 2 months ago

Reference

SDK-2323 -- SDK support for Attribution Reporting API Automation PR

Description

Added a new class to support the Android Attribution Reporting API. The file has two methods, one for checking if the measurement API is enabled in the app, and one for registering triggers. I've also made updates to the TestBed to enable the new API.

checkMeasurementApiStatus() check the Android SDK version and the checks the MEASUREMENT_API_STATE_ENABLED and saves it to a bool so it can be reused throughout the session.

registerTrigger() created a trigger URL using various device information and then registers it with the MeasurementManager().registerTrigger() method.

In Progress:

Testing Instructions

Currently, sending a BranchEvent will call registerTrigger with the event name as the conversion ID. This will log out the generated trigger URL, if the measurement API is enabled.

Risk Assessment [MEDIUM]

Adds new code to frequently called areas of the SDK and references a new library.

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

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

gdeluna-branch commented 2 months ago

Add link to automation PR when ready

gdeluna-branch commented 1 month ago

Can you change the PR branch base to point to the proper one? Right now it's comparing nidhi's changes to master

nsingh-branch commented 1 week ago

Closing for now, will re-open when the feature is ready for release.