updateBadgeCount method

  1. @override
Future<void> updateBadgeCount(
  1. int count
)
override

Implementation

@override
Future<void> updateBadgeCount(int count) async {
  if (isSupported) {
    try {
      final promise = _setAppBadge(count.toJS);
      if (promise != null) {
        await promise.toDart;
      }
    } catch (e) {
      // Ignore API failures
    }
  }
}