Skip to content

Commit f65acff

Browse files
committed
add swift installation instructions
1 parent a7c2fd4 commit f65acff

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,26 @@ See [How to manually link IOS Intercom SDK](docs/IOS-MANUAL-LINKING.md)
365365
}
366366
```
367367
368+
**Swift Alternative:**
369+
370+
If you're using Swift, update your `AppDelegate.swift`:
371+
372+
- Add the import at the top:
373+
374+
```Swift
375+
import intercom_react_native
376+
```
377+
378+
- Inside `didFinishLaunchingWithOptions` before `return super.application(...)`:
379+
380+
```Swift
381+
// ...
382+
383+
IntercomModule.initialize("ios_sdk-YOUR_IOS_API_KEY", withAppId: "YOUR_APP_ID") // <-- Add this (Remember to replace with your API keys)
384+
385+
return super.application(application, didFinishLaunchingWithOptions: launchOptions)
386+
```
387+
368388
#### iOS: Permissions
369389

370390
Add this permission to your `Info.plist`

0 commit comments

Comments
 (0)