AppsFlyerSDK / AppsFlyerFramework

AppsFlyer Apple SDK
https://support.appsflyer.com/hc/en-us/articles/207032066-AppsFlyer-SDK-Integration-iOS
Other
163 stars 90 forks source link

App clip doesn't open for AppsFlyer OneLink #258

Open varunlibra3 opened 8 months ago

varunlibra3 commented 8 months ago

Report

SDK Version

ℹ v6.12.2

What did you do?

I have followed the app clip integration guide by AppsFlyer as given here: https://support.appsflyer.com/hc/en-us/articles/360014262358

Here is the expected flow:

I did some additional setup as well:

Added this entry to app clip info.plist

    <key>AppsFlyerAppClip</key>
        <true/>

Added this entry to app clip entitlement:

<array>
        <string>appclips:mydomain.onelink.me</string>
    </array>
Added these entries to the full app entitlement:
<key>com.apple.developer.associated-domains</key>
    <array>
        <string>applinks:mydomain.onelink.me</string>
        <string>appclips:mydomain.onelink.me</string>
    </array>

Added this to AndroidManifest.xml

<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" />
                <data 
                    android:host="mydomain.onelink.me"
                    android:scheme="https"
                    android:pathPrefix="/zfUQ/" 
                />
            </intent-filter>

The app clip runs fine when I pass the invocation URL in Xcode or in TestFlight build. I updated the advanced app clip experience and added the App Clip Experience URL there as: https://mydomain.onelink.me

When the check the domain status status next to the build number, it shows '1 valid domain'. The AASA file correctly displays the appclips bundle ID. I don't know what's wrong, the app clip just doesn't load when I scan the QR code. Instead it takes me to the App Store. Any help would be appreciated.

What did you expect to happen?

ℹ The app clip card should have opened

What happened instead?

ℹ It redirects to the App Store