Skip to content

Commit c07b5cc

Browse files
committed
feat: update initialization method in ReactIterableAPI
1 parent d484c41 commit c07b5cc

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

example/src/hooks/useIterableApp.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,7 @@ export const IterableAppProvider: FunctionComponent<
213213
// Initialize app
214214
return Iterable.initialize(key, config)
215215
.then((isSuccessful) => {
216+
console.log('initialize success', isSuccessful);
216217
setIsInitialized(isSuccessful);
217218

218219
if (!isSuccessful)

ios/RNIterableAPI/ReactIterableAPI.swift

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -608,16 +608,15 @@ import React
608608
name: Notification.Name.iterableInboxChanged, object: nil)
609609

610610
DispatchQueue.main.async {
611-
IterableAPI.initialize2(
611+
IterableAPI.initialize(
612612
apiKey: apiKey,
613613
launchOptions: launchOptions,
614-
config: iterableConfig,
615-
apiEndPointOverride: apiEndPointOverride
616-
) { result in
617-
resolver(result)
618-
}
614+
config: iterableConfig
615+
)
619616

620617
IterableAPI.setDeviceAttribute(name: "reactNativeSDKVersion", value: version)
618+
619+
resolver(true)
621620
}
622621
}
623622

0 commit comments

Comments
 (0)