Retrieves the system push token for the device.
Syntax
Future<String?> getSystemToken()
Returns
Future<String?>- Returns the system push token as a string, ornullif no token is available.
Example
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.