Skip to content

Commit 5951d31

Browse files
Merge pull request #567 from AppsFlyerSDK/development
Update docs related to expo-android and deep linking
2 parents 2bfc042 + 22c2175 commit 5951d31

1 file changed

Lines changed: 15 additions & 18 deletions

File tree

Docs/RN_ExpoDeepLinkIntegration.md

Lines changed: 15 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,23 @@ hidden: false
77
---
88

99
## Getting started
10-
11-
![alt text](https://massets.appsflyer.com/wp-content/uploads/2018/03/21101417/app-installed-Recovered.png "")
10+
11+
![alt text](https://massets.appsflyer.com/wp-content/uploads/2018/03/21101417/app-installed-Recovered.png)
1212

1313
## Deep Linking Types
14-
1. **Deferred Deep Linking** - Serving personalized content to new or former users, directly after the installation.
14+
15+
1. **Deferred Deep Linking** - Serving personalized content to new or former users, directly after the installation.
1516
2. **Direct Deep Linking** - Directly serving personalized content to existing users, which already have the mobile app installed.
1617

17-
**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.
18+
**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.
1819

1920
For more info please check out the [OneLink™ Deep Linking Guide](https://support.appsflyer.com/hc/en-us/articles/208874366-OneLink-Deep-Linking-Guide#Intro) and [developer guide](https://dev.appsflyer.com/hc/docs/dl_getting_started).
2021

21-
> In order to use AppsFlyer's deeplinks you need to configure intent filters/scheme/associatedDomains as described in [Expo's guide](https://docs.expo.dev/guides/linking/#universal-links-on-ios).
22+
## Implementation for Expo
23+
24+
1. In order to use AppsFlyer's deeplinks you need to configure intent filters/scheme/associatedDomains as described in [Expo's guide](https://docs.expo.dev/guides/linking/#universal-links-on-ios).
25+
26+
2. **For Android apps:** You need to add `setIntent()` inside the `onNewIntent` method like described [here](RN_DeepLinkIntegrate.md#android-deeplink-setup). This plugin is NOT adding this code out the box, so you need to implement it **manually or with [custom config plugin](https://docs.expo.dev/modules/config-plugin-and-native-module-tutorial/#4-creating-a-new-config-plugin)**
2227

2328
## Full app.json example
2429

@@ -33,7 +38,7 @@ For more info please check out the [OneLink™ Deep Linking Guide](https://suppo
3338
"plugins": [
3439
[
3540
"react-native-appsflyer",
36-
{"shouldUseStrictMode": true} // <<-- only for strict mode
41+
{ "shouldUseStrictMode": true } // <<-- only for strict mode
3742
]
3843
],
3944
"splash": {
@@ -44,9 +49,7 @@ For more info please check out the [OneLink™ Deep Linking Guide](https://suppo
4449
"updates": {
4550
"fallbackToCacheTimeout": 0
4651
},
47-
"assetBundlePatterns": [
48-
"**/*"
49-
],
52+
"assetBundlePatterns": ["**/*"],
5053
"scheme": "my-own-scheme", // <<-- uri scheme as configured on AF dashboard
5154
"ios": {
5255
"supportsTablet": true,
@@ -69,10 +72,7 @@ For more info please check out the [OneLink™ Deep Linking Guide](https://suppo
6972
"pathPrefix": "/DvWi" // <<-- set your onelink template id
7073
}
7174
],
72-
"category": [
73-
"BROWSABLE",
74-
"DEFAULT"
75-
]
75+
"category": ["BROWSABLE", "DEFAULT"]
7676
},
7777
{
7878
"action": "VIEW",
@@ -81,10 +81,7 @@ For more info please check out the [OneLink™ Deep Linking Guide](https://suppo
8181
"scheme": "my-own-scheme" // <<-- uri scheme as configured on AF dashboard
8282
}
8383
],
84-
"category": [
85-
"BROWSABLE",
86-
"DEFAULT"
87-
]
84+
"category": ["BROWSABLE", "DEFAULT"]
8885
}
8986
]
9087
},
@@ -93,4 +90,4 @@ For more info please check out the [OneLink™ Deep Linking Guide](https://suppo
9390
}
9491
}
9592
}
96-
```
93+
```

0 commit comments

Comments
 (0)