setAutoBadgeEnabled method

Future<void> setAutoBadgeEnabled(
  1. bool enabled
)

Enables or disables auto-badging on iOS. Badging is not supported for Android.

Implementation

Future<void> setAutoBadgeEnabled(bool enabled) async {
  if (!Platform.isIOS) {
    return Future.value();
  }

  return await _module.channel
      .invokeMethod('push#ios#setAutobadgeEnabled', enabled);
}