Skip to content

Commit e678a36

Browse files
authored
Merge pull request #11 from Iterable/MOB-11126-add-deep-links-support
[MOB-11126] add support for deep linking to iOS
2 parents 0ffcc78 + 5296f72 commit e678a36

File tree

7 files changed

+639
-8506
lines changed

7 files changed

+639
-8506
lines changed

.yarn/install-state.gz

61.2 KB
Binary file not shown.

README.md

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,41 @@
1-
# iterable-expo-plugin
1+
# @iterable/expo-plugin
2+
3+
## Instructions
4+
5+
### Adding Deeplinks
6+
7+
#### iOS
8+
To add deeplinks to your Expo app for use with Iterable, add associated domains
9+
to your `app.json` under the iOS configuration.
10+
11+
EG:
12+
```json
13+
{
14+
"expo": {
15+
"ios": {
16+
"associatedDomains": [
17+
"applinks:expo.dev",
18+
"applinks:iterable.com",
19+
"applinks:links.anotherone.com"
20+
]
21+
}
22+
}
23+
}
24+
```
25+
26+
This is the equivalent of adding them through **Signing & Capabilities** in
27+
Xcode, as described in step 5 of [Iterables iOS Univeral Links
28+
Documentation](https://support.iterable.com/hc/en-us/articles/360035496511-iOS-Universal-Links)
29+
30+
See further documentation about how expo setup of iOS Universal Links
31+
[here](https://docs.expo.dev/linking/ios-universal-links/).
32+
33+
## Troubleshooting
34+
35+
### Example App
36+
37+
#### Failed to delete [ios|android] code: ENOTEMPTY: directory not empty
38+
39+
Sometimes this error appears when running `npx expo prebuild --clean`. It seems
40+
to be an intermittent bug within expo. It usually works upon running the same
41+
command a second time, so just try again.

example/app.json

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,11 @@
1414
},
1515
"ios": {
1616
"supportsTablet": true,
17-
"bundleIdentifier": "expo.modules.adapters.iterable.example"
17+
"bundleIdentifier": "expo.modules.adapters.iterable.example",
18+
"associatedDomains": [
19+
"applinks:iterable.com",
20+
"applinks:links.anotherone.com"
21+
]
1822
},
1923
"android": {
2024
"adaptiveIcon": {
@@ -26,6 +30,18 @@
2630
"web": {
2731
"favicon": "./assets/favicon.png"
2832
},
29-
"plugins": [["../app.plugin.js", { "apiKey": "YOUR_ITERABLE_API_KEY" }]]
33+
"plugins": [
34+
[
35+
"../app.plugin.js",
36+
{
37+
"apiKey": "YOUR_ITERABLE_API_KEY",
38+
"appEnvironment": "development",
39+
"autoConfigurePushNotifications": true,
40+
"enableInAppMessages": true,
41+
"enableTimeSensitivePush": true,
42+
"requestPermissionsForPushNotifications": true
43+
}
44+
]
45+
]
3046
}
3147
}

0 commit comments

Comments
 (0)