Refreshes the inbox by fetching the latest messages from the server.
Syntax
Future<bool> refreshInbox()
Returns
Future<bool>- Returnstrueif the refresh was successful,falseotherwise.
Example
try {
bool success = await SfmcSdk.refreshInbox();
if (success) {
print('Inbox refreshed successfully');
} else {
print('Failed to refresh inbox');
}
} catch (e) {
print('Error refreshing inbox: $e');
}
Notes
- This method fetches the latest messages from the Marketing Cloud server.
- Use this method to ensure you have the most up-to-date inbox content.