1
我想在Android中集成網頁深度鏈接。但是,我無法得到它的工作。以下是具體步驟我以下:Android:深度鏈接網址
步驟1的AndroidManifest.xml:
<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="https" android:host="niksguitarist.000webhostapp.com" android:pathPrefix="/asset"/>
</intent-filter>
<meta-data android:name="asset_statements" android:resource="@string/asset_statements" android:autoVerify="true"/>
步驟2. RES /價值/ strings.xml中:
<string name="asset_statements">
[{
\"relation\": [\"delegate_permission/common.share_location\"],
\"target\": {
\"namespace\": \"web\",
\"site\": \"https://niksguitarist.000webhostapp.com/\"
}
}]
</string>
第3步。服務器上的主機assetLink:
https://niksguitarist.000webhostapp.com/.well-known/assetlinks.json
[{
"relation": ["delegate_permission/common.handle_all_urls"],
"target": {
"namespace": "android_app",
"package_name": "com.sprinklr.distributedapp",
"sha256_cert_fingerprints": ["A8:D4:5F:DC:AE:67:D6:90:46:23:07:8B:23:89:0B:11:AB:49:4E:B0:C7:87:50:0C:59:32:01:A0:4A:88:1A:5A"]
}
}]
現在,當我嘗試在移動瀏覽器(Chrome或Firefox)打開https://niksguitarist.000webhostapp.com/asset,它不路由我到我的應用程序。
有人可以建議我做錯了什麼嗎?
或者從另一個域(在Web瀏覽器中) –