首页 > 解决方案 > 如何从链接打开应用程序而不是玩商店 - Android

问题描述

我想检查是否安装了应用程序然后打开应用程序,如果没有然后播放商店。我尝试使用我的应用程序的 Play 商店链接,但没有成功

   <intent-filter
        android:autoVerify="true"
        android:label="Notification Log">
        <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:path="/store/apps/details?id=com.appnotification.notificationhistorylog"
            android:scheme="http" />
    </intent-filter>

谁能帮我这个

标签: androiddeep-linking

解决方案


它通过将 Playstore 链接更改为短 URL 来工作

   <data

            android:host="bit.ly"
            android:path="/yourappname"
            android:scheme="http" />


推荐阅读