Checks if push notifications are enabled for the device.
Syntax
Future<bool?> isPushEnabled()
Returns
Future<bool?>- Returnstrueif push notifications are enabled,falseif disabled, ornullif the status cannot be determined.
Example
bool? isEnabled = await SfmcSdk.isPushEnabled();
if (isEnabled == true) {
print('Push notifications are enabled');
} else if (isEnabled == false) {
print('Push notifications are disabled');
} else {
print('Push notification status unknown');
}