Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions example/src/hooks/useIterableApp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
11 changes: 5 additions & 6 deletions ios/RNIterableAPI/ReactIterableAPI.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

Expand Down
Loading