fetchAllMessages

@WorkerThread
fun fetchAllMessages(context: Context): InboxData?

Gets all the messages saved in the inbox for the account configured as default.

Return

instance of InboxData or null if the account is not configured

Since

1.0.00

Parameters

context

instance of Context

Throws

if the SDK is not initialized.


@WorkerThread
fun fetchAllMessages(context: Context, appId: String): InboxData?

Gets all the messages saved in the inbox for the given account.

Return

instance of InboxData or null if the account is not configured.

Since

2.0.0

Parameters

context

instance of Context

appId

Account identifier, APP ID on the MoEngage Dashboard.

Throws

if the SDK is not initialized.