getSystemToken

Retrieves the system push token for the device.

Syntax 

1Future<String?> getSystemToken()

Returns 

  • Future<String?> - Returns the system push token as a string, or null if no token is available.

Example 

1String? token = await SfmcSdk.getSystemToken();
2if (token != null) {
3  print('System token: $token');
4} else {
5  print('No system token available');
6}

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.