2017-03-08 16 views
1

AndroidでWeb-URLのディープリンクを統合したいと考えています。しかし、私はそれを働かせることができませんでした。Android:深くリンクするWebのURL

ステップ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.サーバー上のホストassetLinks:

[{ 
    "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"] 
    } 
}] 

、私はモバイルブラウザ(クロムまたはFirefox)でhttps://niksguitarist.000webhostapp.com/assetを開こうとすると、それは私のアプリへのルートを私にしません。

誰かが私が間違っていることを提案できますか?

答えて

1

ブラウザから直接URLを開こうとすると、アプリケーションリンクが機能しません。これは、ブラウザ以外のアプリ(メモ、チャットなど)からURLを開こうとしている場合にのみ有効です。

+0

または別のドメイン(ウェブブラウザ内) –

関連する問題