Skip to content

[MOB-11561] Android: adds enableEmbeddedMessaging flag to config #647

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
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,
};
}
}