Samsung Galaxy S6、Android Marshmallow 6.0 Unityを使って開発する。サムスンネイティブアプリのディープリンクは動作しません
サムスンのアプリ
ディープリンクます。https://はをしない仕事、しかし意図:
- インターネットアプリ
- メモアプリ://はで作業を行います
Googleのアプリを
両方ます。https://と意図:
- Google Chromeのアプリ
- Gmailアプリ
は何かがあります://はで作業を行いますサムスンのカスタムアプリについて
コード
assetlinks.json
[{
"relation": ["delegate_permission/common.handle_all_urls"],
"target": {
"namespace": "android_app",
"package_name": "com.xxx.app",
"sha256_cert_fingerprints":
["4E:CC:14:62:B3:1D:13..."]
}
}]
のAndroidManifest.xml
<?xml version="1.0" encoding="utf-8"?>
<!-- REPLACE com.companyname.projectname to your app bundle ID-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.xxx.app" android:installLocation="preferExternal" android:versionCode="1" android:versionName="1.0">
<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="23"/>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" android:maxSdkVersion="1" />
<supports-screens android:smallScreens="true" android:normalScreens="true" android:largeScreens="true" android:xlargeScreens="true" android:anyDensity="true" />
<application android:icon="@drawable/app_icon" android:label="@string/app_name" android:debuggable="false">
<activity android:name="causallink.assets.DeepLinkBridge" android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
<category android:name="android.intent.category.LEANBACK_LAUNCHER" />
</intent-filter>
<meta-data android:name="unityplayer.UnityActivity" android:value="true" />
<meta-data android:name="unityplayer.ForwardNativeEventsToDalvik" android:value="false" />
<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="v.xxx.com" />
</intent-filter>
</activity>
</application>
</manifest>
P.S.私はグーグルで見つけた多くのの記事のうち、私は実際に役立つと思ったのどれも見つかりませんでした。
このライブラリを使用することをお勧めします。[Deeplink Dispatch](https://github.com/airbnb/DeepLinkDispatch).. – ZeroOne
ありがとうございます。しかし、最初は本当になぜそれが実際に起こるのか理解したいと思います。 – igorpavlov