---
schema_version: "1"
id: ad422c49c16935018e7680c81866287d8bfa508f10140751c652e8b7edc5006f
title: refreshInbox
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/marketing-cloud-mobilepush/engagement_sdk/references/flutter/flutter_refreshInbox.md
canonical_url: https://developer.salesforce.com/docs/marketing/mobile-unified-sdk/references/engagement-mobile-sdk-reference/flutter_refreshInbox.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 73a216db92c33b52a78837647dc707d09a9b7ea12d67ff6c12d143963c6ffb2b
products:
  - Salesforce Engagement SDK
---
# refreshInbox

Refreshes the inbox by fetching the latest messages from the server.

## Syntax

```dart
Future<bool> refreshInbox()
```

## Returns

- `Future<bool>` - Returns `true` if the refresh was successful, `false` otherwise.

## Example

```dart
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.
