Facebook deep link opens Google Play instead of app (even when installed)

馋奶兔 提交于 2019-11-29 15:48:53

Couple of things to try.

First, you need to add more to your intent filter, something like:

<intent-filter>
    <action android:name="android.intent.action.VIEW" />
    <category android:name="android.intent.category.DEFAULT" />
    <category android:name="android.intent.category.BROWSABLE" />
    <data android:scheme="myapp"/>
</intent-filter>

Secondly, for the IDE-installed app, you need to generate a key hash for that (using your debug keystore), and add that to your list of key hashes on the developer dashboard.

Make sure the Class Name field in your Facebook developers console contains the namespace as well. So not just MainActivity, use com.domain.appname.MainActivity instead.

More info on this (old) docs page.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!