updateBadgeCount method
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
}
}
}