I am trying to implement Facebook deep linking feature according to https://developers.facebook.com/docs/app-ads/deep-linking.
I have followed step by step instructions:
- Created FB app
- Added FB sdk (4.13.2) to Android app
When I run the app, it is detected by Facebook, verified on the https://developers.facebook.com/tools/app-ads-helper/
I also created an Activity
to handle deep links. AndroidManifest configuration:
<activity android:name=".DeeplinkActivity">
<intent-filter>
<data
android:host="deeplink.com"
android:pathPrefix="/openapp"
android:scheme="deep" />
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
</intent-filter>
</activity>
DeeplinkActivity
opens if started from adb via:
adb shell am start -W -a android.intent.action.VIEW -d "deep://deeplink.com/openapp" com.example.rps
This is Android configuration under Facebook app settings:
Please note that fully qualified Class Name (com.example.rps.DeeplinkActivity
) is also not working.
I tried testing deep links via Deeplink Tester, on the App Ads Helper page (link above)
I receive notification on my phone from Facebook app, saying "Tap to launch your deep link", but nothing happens, my app is never started.
What am I missing?