Expo Deep linking integration
始めましょう
Deep Linking Types
- ディファードディープリンク - インストール後 アプリの初回起動時に、パーソナライズされたアプリ内の特定画面を直接開きます。
- ダイレクトディープリンク - モバイルアプリをすでにインストールしている既存のユーザーに、パーソナライズされたアプリ内の特定画面を直接開きます。
Unified deep linking (UDL) - an API which enables you to send new and existing users to a specific in-app activity as soon as the app is opened.
詳細: OneLink™ディープリンクガイド / 開発者ガイド
In order to use AppsFlyer's deeplinks you need to configure intent filters/scheme/associatedDomains as described in Expo's guide.
Full app.json example
{
"expo": {
"name": "expoAppsFlyer",
"slug": "expoAppsFlyer",
"version": "1.0.0",
"orientation": "portrait",
"icon": "./assets/atom.png",
"plugins": [
[
"react-native-appsflyer",
{"shouldUseStrictMode": true} // <<-- only for strict mode
]
],
"splash": {
"image": "./assets/splash.png",
"resizeMode": "contain",
"backgroundColor": "#ffffff"
},
"updates": {
"fallbackToCacheTimeout": 0
},
"assetBundlePatterns": [
"**/*"
],
"scheme": "my-own-scheme", // <<-- uri scheme as configured on AF dashboard
"ios": {
"supportsTablet": true,
"bundleIdentifier": "com.appsflyer.expoaftest",
"associatedDomains": ["applinks:expotest.onelink.me"] // <<-- important in order to use universal links
},
"android": {
"adaptiveIcon": {
"foregroundImage": "./assets/adaptive-icon.png",
"backgroundColor": "#FFFFFF"
},
"package": "com.af.expotest",
"intentFilters": [
{
"action": "VIEW",
"data": [
{
"scheme": "https",
"host": "expotest.onelink.me", // <<-- important for android App Links
"pathPrefix": "/DvWi" // <<-- set your onelink template id
}
],
"category": [
"BROWSABLE",
"DEFAULT"
]
},
{
"action": "VIEW",
"data": [
{
"scheme": "my-own-scheme" // <<-- uri scheme as configured on AF dashboard
}
],
"category": [
"BROWSABLE",
"DEFAULT"
]
}
]
},
"web": {
"favicon": "./assets/favicon.png"
}
}
}
更新済 約1ヶ月前