Skip to content

Commit

Permalink
chore: improve Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
TheNerdGuyLulu committed Apr 22, 2024
1 parent 5868707 commit 45c949b
Showing 1 changed file with 22 additions and 4 deletions.
26 changes: 22 additions & 4 deletions sandboxes/NotificationsSandbox/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ yarn run pod
```



## Step 4: Initialize Intercom

### Android
Expand Down Expand Up @@ -88,6 +87,8 @@ return [super application:application didFinishLaunchingWithOptions:launchOption
### Android
> Move your **google-services.json** file into the **android/app** directory
> You can find more details on how to configure firebase with Intercom [here](https://developers.intercom.com/installing-intercom/react-native/push-notifications).
# Running the the app
Expand Down Expand Up @@ -153,16 +154,27 @@ xcrun simctl push booted my.bundle.id payload.json
```


# Deep Links Testing
# (Local) Deep Links Testing

By default, this sandbox is configured to handle the following links with React Navigation:

```shell
**app.fake** for iOS Universal Link and Android App Link

**app://** for deep link

**app.fake** for iOS Universal Link and Android App Link (Only works when linked on a message fron within the app.)
```

```shell
Configured Paths:
/settings
```

>**Note:** Universal and App Links require setup in the server to work.
[Apple - Supporting Associated Domains](https://developer.apple.com/documentation/xcode/supporting-associated-domains)

[Android - Verify App Links](https://developer.android.com/training/app-links/verify-android-applinks)

[React Navigation Documentation - Setup Deep Links](https://reactnavigation.org/docs/deep-linking)

[React Navigation Documentation - Configuring Links](https://reactnavigation.org/docs/configuring-links)
Expand All @@ -177,6 +189,8 @@ npx uri-scheme open [your deep link] --[ios|android]
Example:
```shell
npx uri-scheme open "app://settings" --ios

npx uri-scheme open "https://app.fake/settings" --ios
```


Expand All @@ -190,6 +204,8 @@ xcrun simctl openurl booted [your deep link]
Example:
```shell
xcrun simctl openurl booted "app://settings"

xcrun simctl openurl booted "https://app.fake/settings"
```


Expand All @@ -203,4 +219,6 @@ adb shell am start -W -a android.intent.action.VIEW -d [your deep link] [your an
Example:
```shell
adb shell am start -W -a android.intent.action.VIEW -d "app://settings" com.example.app

adb shell am start -W -a android.intent.action.VIEW -d "https://app.fake/settings" com.example.app
```

0 comments on commit 45c949b

Please sign in to comment.