isAutoBadgeEnabled method

Future<bool> isAutoBadgeEnabled()

Checks if auto-badging is enabled on iOS. Badging is not supported for Android.

Implementation

Future<bool> isAutoBadgeEnabled() async {
  var isAutoBadgeEnabled = false;
  if (Platform.isIOS) {
    isAutoBadgeEnabled =
        await _module.channel.invokeMethod('push#ios#isAutobadgeEnabled');
  }
  return isAutoBadgeEnabled;
}