BranchMetrics / cordova-ionic-phonegap-branch-deep-linking-attribution

The Branch Cordova Ionic Phonegap 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/apps/cordova-phonegap-ionic/
MIT License
234 stars 144 forks source link

Android 12 requires app links verification similar to iOS AASA #697

Closed rex-iotum closed 2 years ago

rex-iotum commented 2 years ago

Deeplinking on Android 12 no longer works without explicit user input to enable each deep link after app install.

Is there any way for this plugin to generate the correct <intent-filter> format as per this guide? https://developer.android.com/training/app-links/verify-site-associations

<!-- Make sure you explicitly set android:autoVerify to "true". -->
<intent-filter android:autoVerify="true">
    <action android:name="android.intent.action.VIEW" />
    <category android:name="android.intent.category.DEFAULT" />
    <category android:name="android.intent.category.BROWSABLE" />

    <!-- If a user clicks on a shared link that uses the "http" scheme, your
         app should be able to delegate that traffic to "https". -->
    <data android:scheme="http" />
    <data android:scheme="https" />

    <!-- Include one or more domains that should be verified. -->
    <data android:host="..." />
</intent-filter>

image

rex-iotum commented 2 years ago

Ah nevermind, looking at the source code your plugin already does so. We're only missing the AASA style file hosted in .well_known

jf-branch commented 2 years ago

Hi @rex-iotum. When you properly set up Android App links in the Branch Dashboard Configuration tab with your corresponding SHA256 certs for different build types/environments, we will properly host your DAL(digital asset links) file within the app.link/.well-known

rex-iotum commented 2 years ago

@jf-branch Hi, I would suggest making it more prominent that Android 12 now requires using "App Links" instead of the usual Link -> Browser -> App handoff.