[英]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.