2

假设应用程序的包名是 com.example.com,AndroidManifest.xml 中有以下条目

<activity ...>
    <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"/>
        <data android:scheme="https"/>
    </intent-filter>
</activity>

该应用程序没有/拥有任何域,Android 开发人员文档 https://developer.android.com/studio/write/app-link-indexing 给出的assetlinks.json 中没有应用程序包到域的映射。 html

例如: https ://www.example.net/.well-known/assetlinks.json

我们可以使用以下 URL 模式定义和实现深度链接:

market://details?id=com.example.com 或 https://play.google.com/store/apps/details?id=com.example.com

其次,在应用程序中,我们有下面的意图过滤器来跟踪 UTM 参数

   <receiver
      android:name=".main.activity.InstallTrackersReceiver"
      android:enabled="true">
        <intent-filter>
            <action android:name="com.android.vending.INSTALL_REFERRER" />
        </intent-filter>
   </receiver>

我们如何确保应用程序是深度链接的,即使在市场中设置 UTM 参数:// http:// 模式深度链接 URL 如下所示:

https://play.google.com/store/apps/details?id=com.example.com&utm_source=web

任何指导或建议都会非常有帮助。

4

0 回答 0