创建android深层链接

时间:2017-09-07 18:37:37

标签: android firebase

我创建了如下所示的深层链接: https://sharetips.app.goo.gl?amv=0&apn=reznik.com.sharetipsandgetmoney&link=https%3A%2F%2Fplay.google.com%2Fstore%2Fapps%2Fdetails%3Fid%3Dreznik.com.sharetipsandgetmoney

当我打开此链接时,我会重定向到未知页面(代码:404)。

我在AndroidManifest中使用此过滤器:

<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:host="play.google.com"
            android:scheme="https"
            android:pathPattern=".*" />
</intent-filter>

这里有什么问题?

1 个答案:

答案 0 :(得分:0)

过滤器没有任何问题,除非您不应该使用它,因为您声称您的应用应该处理所有https://play.google.com个链接。 PlayStore应用已经在做了。

您应首先获得有效链接以使深层链接正常工作。

您能解释一下您想通过深层链接实现的目标吗?