简体   繁体   English

如何为我的应用设置深层链接并在Google中搜索它

[英]How I can set deep link for my app and search it in google

I want set deep link in my app and when search it in my devices browser it can open my app. 我想在我的应用程序中设置深层链接,并在设备浏览器中搜索它时可以打开我的应用程序。 Here is my code : In Mainfest.xml 这是我的代码:在Mainfest.xml中

 <application
    android:allowBackup="true"
    android:icon="@mipmap/ic_launcher"
    android:label="@string/app_name"
    android:supportsRtl="true"
    android:theme="@style/AppTheme">
    <activity android:name=".MainActivity">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
        <!-- handle website links -->
        <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="tannerperrien.com"
                android:scheme="http" />
        </intent-filter>

        <!-- handle app links -->
        <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="tannerperrien" />
        </intent-filter>
    </activity>
</application>

When I used app test deep link from google play : test deep link it can open my app but I can search it from my browser. 当我使用Google Play应用测试深层链接: 测试深层链接时,它可以打开我的应用程序,但我可以从浏览器中搜索它。 How I can do it? 我该怎么办?

You can check doc for deeplinking here. 您可以在此处检查文档的深层链接。 It has how to implement and how to test. 它具有如何实施和如何测试。 http://developer.android.com/training/app-indexing/deep-linking.html#testing-filters http://developer.android.com/training/app-indexing/deep-linking.html#testing-filters

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何将Android上的Google帐户链接到我的应用程序? - How can I link the Google account on the android to my app? 如何使我的Android应用出现在Google搜索中 - How can I make my android app appears in Google search 如何实现Facebook共享,然后在Android App中使用深层链接(打开我的应用程序)发布发布的深层链接? - how to implement Facebook sharing and then deep link that post using deep link(open my app) in android App? 如何深入链接我的Android应用程序到paytm和freecharge应用程序? - How to deep link my android app to paytm and freecharge app? 当我尝试打开深层链接时,我的应用没有显示 - My app not showing up when I try open the deep link 如何从 Google Actions“深层链接”到我的应用程序 - How to "Deep Link" into my application from Google Actions 如何在android app auth中为Oauth 2.0设置Deep-link - How to set Deep-link for Oauth 2.0 in android app auth 如何知道在 React Native 中重定向到我的应用程序的深层链接的地址 - How to know the address of the deep link that redirected to my app in React Native 如何确定谁启动了到我应用的深层链接 - How to determine who has launched a deep link into my app 如何分享帖子和与我的Android应用程序的深层链接 - How to share posts and deep link to my android app
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM