setBadge method

Future<void> setBadge(
  1. int badge
)

Sets the badge number on iOS. Badging is not supported for Android.

Implementation

Future<void> setBadge(int badge) async {
  if (!Platform.isIOS) {
    return Future.value();
  }
  return await _module.channel.invokeMethod('push#ios#setBadgeNumber', badge);
}