|
26 | 26 | - [Push Notifications](#ios-push-notifications) |
27 | 27 | - [Push notification deep links support](#ios-push-notification-deep-links-support) |
28 | 28 | - [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) |
30 | 33 | - [Common methods](#methods) |
31 | 34 | - [Types](#types) |
32 | 35 | - [Usage](#usage) |
@@ -473,7 +476,7 @@ The plugin provides props for extra customization. Every time you change the pro |
473 | 476 | } |
474 | 477 | ``` |
475 | 478 |
|
476 | | -#### Push notifications |
| 479 | +#### Expo: Push notifications |
477 | 480 |
|
478 | 481 | Add the following configurations into your `app.json` or `app.config.js`: |
479 | 482 |
|
@@ -512,10 +515,85 @@ e.g. [react-native-permissions](https://github.com/zoontek/react-native-permissi |
512 | 515 |
|
513 | 516 | Next, rebuild your app as described in the ["Adding custom native code"](https://docs.expo.io/workflow/customizing/) guide. |
514 | 517 |
|
| 518 | +#### Expo: Push notification deep links support |
515 | 519 |
|
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 | +``` |
517 | 596 |
|
518 | | -- **No deep links support**: Deep Linking currently is not supported by this config plugin extension. This will be added in the future. |
519 | 597 |
|
520 | 598 |
|
521 | 599 | ## Methods |
|
0 commit comments