Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added note for android apps in the expo deep link guide #566

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 15 additions & 18 deletions Docs/RN_ExpoDeepLinkIntegration.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,23 @@ hidden: false
---

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

![alt text](https://massets.appsflyer.com/wp-content/uploads/2018/03/21101417/app-installed-Recovered.png)

## Deep Linking Types
1. **Deferred Deep Linking** - Serving personalized content to new or former users, directly after the installation.

1. **Deferred Deep Linking** - Serving personalized content to new or former users, directly after the installation.
2. **Direct Deep Linking** - Directly serving personalized content to existing users, which already have the mobile app installed.

**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.
**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.

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).

> 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).
## Implementation for Expo

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).

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)**

## Full app.json example

Expand All @@ -33,7 +38,7 @@ For more info please check out the [OneLink™ Deep Linking Guide](https://suppo
"plugins": [
[
"react-native-appsflyer",
{"shouldUseStrictMode": true} // <<-- only for strict mode
{ "shouldUseStrictMode": true } // <<-- only for strict mode
]
],
"splash": {
Expand All @@ -44,9 +49,7 @@ For more info please check out the [OneLink™ Deep Linking Guide](https://suppo
"updates": {
"fallbackToCacheTimeout": 0
},
"assetBundlePatterns": [
"**/*"
],
"assetBundlePatterns": ["**/*"],
"scheme": "my-own-scheme", // <<-- uri scheme as configured on AF dashboard
"ios": {
"supportsTablet": true,
Expand All @@ -69,10 +72,7 @@ For more info please check out the [OneLink™ Deep Linking Guide](https://suppo
"pathPrefix": "/DvWi" // <<-- set your onelink template id
}
],
"category": [
"BROWSABLE",
"DEFAULT"
]
"category": ["BROWSABLE", "DEFAULT"]
},
{
"action": "VIEW",
Expand All @@ -81,10 +81,7 @@ For more info please check out the [OneLink™ Deep Linking Guide](https://suppo
"scheme": "my-own-scheme" // <<-- uri scheme as configured on AF dashboard
}
],
"category": [
"BROWSABLE",
"DEFAULT"
]
"category": ["BROWSABLE", "DEFAULT"]
}
]
},
Expand All @@ -93,4 +90,4 @@ For more info please check out the [OneLink™ Deep Linking Guide](https://suppo
}
}
}
```
```
Loading