Skip to content

Commit f87ed6b

Browse files
committed
update
1 parent f65acff commit f87ed6b

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

README.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -372,18 +372,19 @@ If you're using Swift, update your `AppDelegate.swift`:
372372
- Add the import at the top:
373373
374374
```Swift
375-
import intercom_react_native
375+
import Intercom
376376
```
377377

378-
- Inside `didFinishLaunchingWithOptions` before `return super.application(...)`:
378+
- Inside `didFinishLaunchingWithOptions` before `return true`:
379379

380380
```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-
```
381+
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
382+
....
383+
Intercom.setApiKey("<Your iOS API Key>", forAppId: "<Your App ID>")
384+
....
385+
}
386+
387+
```
387388

388389
#### iOS: Permissions
389390

0 commit comments

Comments
 (0)