You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Initialize at app startup in your native code for the best user experience.
88
+
89
+
**Option 2: JavaScript Initialization**
90
+
Initialize manually from JavaScript for more control over timing. If you choose this option, skip the native initialization code below and see the [`initialize` method documentation](#intercomintializeapikey-appid) for implementation details.
91
+
92
+
**For Native Initialization:**
93
+
84
94
- Add below lines to `android/app/src/main/java/com/YOUR_APP/app/MainApplication.java` inside `onCreate` method, replacing `apiKey` and `appId` which can be found in your [workspace settings](https://app.intercom.com/a/apps/_/settings/android).
85
95
86
96
```java
@@ -340,6 +350,16 @@ See [How to manually link IOS Intercom SDK](docs/IOS-MANUAL-LINKING.md)
340
350
341
351
#### iOS: Setup
342
352
353
+
You have two options for initializing Intercom:
354
+
355
+
**Option 1: Native Initialization (Recommended)**
356
+
Initialize at app startup in your native code for the best user experience.
357
+
358
+
**Option 2: JavaScript Initialization**
359
+
Initialize manually from JavaScript for more control over timing. If you choose this option, skip the native initialization code below and see the [`initialize` method documentation](#intercomintializeapikey-appid) for implementation details with platform-specific API key handling.
360
+
361
+
**For Native Initialization:**
362
+
343
363
- Open `ios/AppDelegate.m` then add below code:
344
364
345
365
- At the top of file add the following:
@@ -359,7 +379,7 @@ See [How to manually link IOS Intercom SDK](docs/IOS-MANUAL-LINKING.md)
Add the following configurations into your `app.json` or `app.config.js`:
@@ -697,6 +753,36 @@ Sets the user hash necessary for validation when Identity Verification is enable
697
753
698
754
---
699
755
756
+
### `Intercom.initialize(apiKey, appId)`
757
+
758
+
Initialize the Intercom SDK manually. This is useful when you want to delay initialization until after your app has started, or when using Expo with the `useManualInit` plugin option.
0 commit comments