Skip to content

Commit 5bb94ee

Browse files
chore: Add documentation for deep linking (#200)
* chore: Add documentation for deep linking * chore: Add documentation for deep linking --------- Co-authored-by: Brian Boyle <[email protected]>
1 parent 902d7af commit 5bb94ee

File tree

1 file changed

+82
-4
lines changed

1 file changed

+82
-4
lines changed

README.md

Lines changed: 82 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@ ___
2626
- [Push Notifications](#ios-push-notifications)
2727
- [Push notification deep links support](#ios-push-notification-deep-links-support)
2828
- [Expo](#expo)
29-
- [Limitations](#limitations)
29+
- [Push Notifications](#expo-push-notifications)
30+
- [Push notification deep links support](#expo-push-notification-deep-links-support)
31+
- [Android](#android-deep-link)
32+
- [iOS](#ios-deep-link)
3033
- [Common methods](#methods)
3134
- [Types](#types)
3235
- [Usage](#usage)
@@ -473,7 +476,7 @@ The plugin provides props for extra customization. Every time you change the pro
473476
}
474477
```
475478

476-
#### Push notifications
479+
#### Expo: Push notifications
477480

478481
Add the following configurations into your `app.json` or `app.config.js`:
479482

@@ -512,10 +515,85 @@ e.g. [react-native-permissions](https://github.com/zoontek/react-native-permissi
512515

513516
Next, rebuild your app as described in the ["Adding custom native code"](https://docs.expo.io/workflow/customizing/) guide.
514517

518+
#### Expo: Push notification deep links support
515519

516-
#### Limitations
520+
> **Note**: You can read more on Expo [documentation](https://docs.expo.dev/guides/deep-linking)
521+
522+
#### Android: Deep Link
523+
524+
```json
525+
{
526+
"expo": {
527+
"android": {
528+
"intentFilters": [
529+
{
530+
"action": "VIEW",
531+
"data": [
532+
{
533+
"host": "Your app scheme(app)"
534+
}
535+
],
536+
"category": ["BROWSABLE", "DEFAULT"]
537+
}
538+
]
539+
}
540+
}
541+
}
542+
```
543+
544+
#### Android: App Links
545+
546+
```json
547+
{
548+
"expo": {
549+
"android": {
550+
"intentFilters": [
551+
{
552+
"action": "VIEW",
553+
"autoVerify": true,
554+
"data": [
555+
{
556+
"scheme": "https",
557+
"host": "Your app url(www.app.com)",
558+
"pathPrefix": "Your url prefix e.g. /settings)"
559+
}
560+
],
561+
"category": ["BROWSABLE", "DEFAULT"]
562+
}
563+
]
564+
}
565+
}
566+
}
567+
```
568+
569+
#### iOS: Deep Link
570+
571+
```json
572+
{
573+
"expo": {
574+
"ios": {
575+
"infoPlist": {
576+
"LSApplicationQueriesSchemes": ["Your app scheme(app)"]
577+
}
578+
}
579+
}
580+
}
581+
```
582+
583+
#### iOS: Universal Link
584+
585+
```json
586+
{
587+
"expo": {
588+
"ios": {
589+
"infoPlist": {
590+
"IntercomUniversalLinkDomains": ["Your app url(www.app.com)"]
591+
}
592+
}
593+
}
594+
}
595+
```
517596

518-
- **No deep links support**: Deep Linking currently is not supported by this config plugin extension. This will be added in the future.
519597

520598

521599
## Methods

0 commit comments

Comments
 (0)