diff --git a/example/src/hooks/useIterableApp.tsx b/example/src/hooks/useIterableApp.tsx index 86c5f7776..5bfb58306 100644 --- a/example/src/hooks/useIterableApp.tsx +++ b/example/src/hooks/useIterableApp.tsx @@ -213,6 +213,7 @@ export const IterableAppProvider: FunctionComponent< // Initialize app return Iterable.initialize(key, config) .then((isSuccessful) => { + console.log('initialize success', isSuccessful); setIsInitialized(isSuccessful); if (!isSuccessful) diff --git a/ios/RNIterableAPI/ReactIterableAPI.swift b/ios/RNIterableAPI/ReactIterableAPI.swift index 6ebffaf40..249f374cc 100644 --- a/ios/RNIterableAPI/ReactIterableAPI.swift +++ b/ios/RNIterableAPI/ReactIterableAPI.swift @@ -608,16 +608,15 @@ import React name: Notification.Name.iterableInboxChanged, object: nil) DispatchQueue.main.async { - IterableAPI.initialize2( + IterableAPI.initialize( apiKey: apiKey, launchOptions: launchOptions, - config: iterableConfig, - apiEndPointOverride: apiEndPointOverride - ) { result in - resolver(result) - } + config: iterableConfig + ) IterableAPI.setDeviceAttribute(name: "reactNativeSDKVersion", value: version) + + resolver(true) } }