Skip to content

Commit

Permalink
Merge branch 'main' into feat/add-push-support-expo
Browse files Browse the repository at this point in the history
  • Loading branch information
TheNerdGuyLulu authored Apr 30, 2024
2 parents cc01598 + f148100 commit bcdc141
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 7 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,6 @@ See the [example app](https://github.com/intercom/intercom-react-native/blob/mai

Intercom for iOS requires a **minimum iOS version of 15.**


```sh
cd ios
pod install
Expand Down
3 changes: 1 addition & 2 deletions sandboxes/NotificationsSandbox/App.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ export const styles = StyleSheet.create({
justifyContent: 'center',
},
title: {
position: 'absolute',
top: '25%',
marginTop: 25,
fontWeight: 'bold',
fontSize: 20,
},
Expand Down
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 from 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 bcdc141

Please sign in to comment.