美文网首页
Handling App Links

Handling App Links

作者: 寒冬_腊月 | 来源:发表于2017-03-09 18:10 被阅读56次

由于业务需要,公司App添加了分享(branch)送Coupon的功能,但是测试发现分享到FB,Twitter发现跳不到App

修改流程

看了一下官方给的文档 ,相关的都注册上了

 <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:scheme="http" android:host="www.android.com" />
        <data android:scheme="https" android:host="www.android.com" />
    </intent-filter>

ps:这里data可以是多个,后面host我修改成android:host="*",这样就可以匹配多个,我们加的统计后台 有这个判断
android-app://packagename/appname/home/://
这个打不开的时候就会跳转到Google Play

Google 官网

相关文章

网友评论

      本文标题:Handling App Links

      本文链接:https://www.haomeiwen.com/subject/nqhggttx.html