refreshInbox

Refreshes the inbox by fetching the latest messages from the server.

Syntax 

1Future<bool> refreshInbox()

Returns 

  • Future<bool> - Returns true if the refresh was successful, false otherwise.

Example 

1try {
2  bool success = await SfmcSdk.refreshInbox();
3  if (success) {
4    print('Inbox refreshed successfully');
5  } else {
6    print('Failed to refresh inbox');
7  }
8} catch (e) {
9  print('Error refreshing inbox: $e');
10}

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.