Skip to content

Commit f148100

Browse files
fix: UI (#189)
* chore: Create Push Notifications sandbox * fix: docs * fix: renaming * fix: Android ui * chore: improve Readme
1 parent a55190c commit f148100

File tree

3 files changed

+23
-7
lines changed

3 files changed

+23
-7
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,6 @@ See the [example app](https://github.com/intercom/intercom-react-native/blob/mai
284284

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

287-
288287
```sh
289288
cd ios
290289
pod install

sandboxes/NotificationsSandbox/App.styles.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ export const styles = StyleSheet.create({
77
justifyContent: 'center',
88
},
99
title: {
10-
position: 'absolute',
11-
top: '25%',
10+
marginTop: 25,
1211
fontWeight: 'bold',
1312
fontSize: 20,
1413
},

sandboxes/NotificationsSandbox/README.md

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ yarn run pod
4949
```
5050

5151

52-
5352
## Step 4: Initialize Intercom
5453

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

155156

156-
# Deep Links Testing
157+
# (Local) Deep Links Testing
157158

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

160161
```shell
161-
**app.fake** for iOS Universal Link and Android App Link
162-
163162
**app://** for deep link
163+
164+
**app.fake** for iOS Universal Link and Android App Link (Only works when linked on a message from within the app.)
165+
```
166+
167+
```shell
168+
Configured Paths:
169+
/settings
164170
```
165171

172+
>**Note:** Universal and App Links require setup in the server to work.
173+
174+
[Apple - Supporting Associated Domains](https://developer.apple.com/documentation/xcode/supporting-associated-domains)
175+
176+
[Android - Verify App Links](https://developer.android.com/training/app-links/verify-android-applinks)
177+
166178
[React Navigation Documentation - Setup Deep Links](https://reactnavigation.org/docs/deep-linking)
167179

168180
[React Navigation Documentation - Configuring Links](https://reactnavigation.org/docs/configuring-links)
@@ -177,6 +189,8 @@ npx uri-scheme open [your deep link] --[ios|android]
177189
Example:
178190
```shell
179191
npx uri-scheme open "app://settings" --ios
192+
193+
npx uri-scheme open "https://app.fake/settings" --ios
180194
```
181195

182196

@@ -190,6 +204,8 @@ xcrun simctl openurl booted [your deep link]
190204
Example:
191205
```shell
192206
xcrun simctl openurl booted "app://settings"
207+
208+
xcrun simctl openurl booted "https://app.fake/settings"
193209
```
194210

195211

@@ -203,4 +219,6 @@ adb shell am start -W -a android.intent.action.VIEW -d [your deep link] [your an
203219
Example:
204220
```shell
205221
adb shell am start -W -a android.intent.action.VIEW -d "app://settings" com.example.app
222+
223+
adb shell am start -W -a android.intent.action.VIEW -d "https://app.fake/settings" com.example.app
206224
```

0 commit comments

Comments
 (0)