File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed
Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments