feat: AppsFlyer unified deep linking to registration screen - #501
feat: AppsFlyer unified deep linking to registration screen#501dariakharlan wants to merge 1 commit into
Conversation
Adds AppsFlyer Android SDK integration for Unified Deep Linking (UDL), following the existing Branch integration pattern. Deep links from go.proanalytics.academy, proanalytics.onelink.me, and the academyapp:// scheme resolve via AppsFlyerDeepLinkHandler and route to the registration (sign-up) screen by default, unless the OneLink template overrides the destination via a screen_name parameter. - New AppsFlyerConfig / Config.getAppsFlyerConfig(), gated by an APPSFLYER.ENABLED flag in config.yaml (mirrors BRANCH config) - Manifest intent-filters for the custom scheme and App Links domains - New DeepLinkType.REGISTER wired into DeepLinkRouter, respecting REGISTRATION_ENABLED and current login state - AppsFlyerDeepLinkHandler subscribes to the SDK's DeepLinkListener and exposes a replay-1 SharedFlow consumed by AppActivity, avoiding races between SDK resolution and Activity startup Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
|
Thanks for the pull request, @dariakharlan! This repository is currently maintained by Once you've gone through the following steps feel free to tag them in a comment and let them know that your changes are ready for engineering review. 🔘 Get product approvalIf you haven't already, check this list to see if your contribution needs to go through the product review process.
🔘 Provide contextTo help your reviewers and other members of the community understand the purpose and larger context of your changes, feel free to add as much of the following information to the PR description as you can:
🔘 Submit a signed contributor agreement (CLA)
If you've signed an agreement in the past, you may need to re-sign. Once you've signed the CLA, please allow 1 business day for it to be processed. 🔘 Get a green buildIf one or more checks are failing, continue working on your changes until this is no longer the case and your build turns green. DetailsWhere can I find more information?If you'd like to get more details on all aspects of the review process for open source pull requests (OSPRs), check out the following resources: When can I expect my changes to be merged?Our goal is to get community contributions seen and reviewed as efficiently as possible. However, the amount of time that it takes to review and merge a PR can vary significantly based on factors such as:
💡 As a result it may take up to several weeks or months to complete a review and merge your PR. |
Summary
go.proanalytics.academy,proanalytics.onelink.me, and theacademyapp://custom scheme resolve through a newAppsFlyerDeepLinkHandlerand route to the registration (sign-up) screen by default. A OneLink template can override the destination by setting ascreen_namedeep link parameter, reusing the existingDeepLink/DeepLinkRouterinfrastructure.APPSFLYER.ENABLED/APPSFLYER.DEV_KEYconfig keys (defaultconfig.yamlfor dev/stage/prod), following the same pattern asBRANCH.autoVerify="true").tools:replaceforallowBackup/dataExtractionRules/fullBackupContenton<application>, required because the AppsFlyer SDK ships its own manifest entries for these that otherwise fail the manifest merge.Why
Support AppsFlyer-driven install/re-engagement attribution and route new users straight to registration when they arrive via a tracked link, without disrupting the existing Branch-based deep link flows (course/discussion links, etc.).
Notes for reviewers
APPSFLYER.ENABLEDdefaults tofalseandDEV_KEYis empty in all three environments — the SDK will not initialize until a real dev key is configured.go.proanalytics.academyandproanalytics.onelink.me(handled via AppsFlyer's OneLink setup).:appcompile could not be verified in the dev environment used for this change due to a pre-existing, unrelated MSAL dependency issue in theauthmodule (reproducible onmainwithout this change). Thecoremodule (housing the new config classes) compiles cleanly, and the app-module changes closely follow the already-working Branch pattern.Test plan
APPSFLYER.ENABLED: trueand a realDEV_KEYin the target environment'sconfig.yamladb shell am start -a android.intent.action.VIEW -d "academyapp://test") and confirm the app opens to the registration screen