Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,10 @@ static IterableConfig.Builder getConfigFromReadableMap(ReadableMap iterableConte
configBuilder.setEncryptionEnforced(iterableContextJSON.optBoolean("encryptionEnforced"));
}

if (iterableContextJSON.has("enableEmbeddedMessaging")) {
configBuilder.setEnableEmbeddedMessaging(iterableContextJSON.optBoolean("enableEmbeddedMessaging"));
}

return configBuilder;
} catch (JSONException e) {
e.printStackTrace();
Expand Down
8 changes: 8 additions & 0 deletions src/core/classes/IterableConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,13 @@ export class IterableConfig {
*/
encryptionEnforced = false;

/**
* This specifies whether the SDK should enable embedded messaging.
*
* By default, the SDK will not enable embedded messaging.
*/
enableEmbeddedMessaging = false;

/**
* Converts the IterableConfig instance to a dictionary object.
*
Expand Down Expand Up @@ -342,6 +349,7 @@ export class IterableConfig {
dataRegion: this.dataRegion,
pushPlatform: this.pushPlatform,
encryptionEnforced: this.encryptionEnforced,
enableEmbeddedMessaging: this.enableEmbeddedMessaging,
};
}
}