---
schema_version: "1"
id: 8a498ecf33c4553be4b45ce4d2407759e343b3af3087b04825ca0270284ab65c
title: getSystemToken
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_getSystemToken.md
canonical_url: https://developer.salesforce.com/docs/marketing/mobile-unified-sdk/references/engagement-mobile-sdk-reference/flutter_getSystemToken.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 3307863ca04be53701d2850f9bb4caea68d5f83d4784b7fcae9b9b37f311ebb7
products:
  - Salesforce Engagement SDK
---
# getSystemToken

Retrieves the system push token for the device.

## Syntax

```dart
Future<String?> getSystemToken()
```

## Returns

- `Future<String?>` - Returns the system push token as a string, or `null` if no token is available.

## Example

```dart
String? token = await SfmcSdk.getSystemToken();
if (token != null) {
  print('System token: $token');
} else {
  print('No system token available');
}
```

## Notes

- The system token is used by the platform to deliver push notifications to the device.
- This token may change over time and should be refreshed periodically.
