schedule_badge_updates 0.1.0 copy "schedule_badge_updates: ^0.1.0" to clipboard
schedule_badge_updates: ^0.1.0 copied to clipboard

This iOS plugin for Flutter allows you to schedule badge updates on your app icon.

schedule_badge_updates #

This plugin allows you to schedule badge updates.

NOTE: This is beta which only support iOS 10 but it has been used in production for >2 years.

Getting Started #

import 'package:schedule_badge_updates/schedule_badge_updates.dart';

// Set badge to 16
ScheduleBadgeUpdates.setBadge(16);

// Schedule badge to be set to 15 in 15 seconds
String res = await ScheduleBadgeUpdates.scheduleBadge(15, DateTime.now().add(Duration(seconds: 15)));

// Remove all scheduled badge updates but don't clear current badge
await ScheduleBadgeUpdates.unscheduleAllBadgeUpdates();

// Clear badge right now but leave pending updates
await ScheduleBadgeUpdates.clearBadge()

// Remove specific scheduled updates specified as uuid returned by ScheduleBadgeUpdates.scheduleBadge
await ScheduleBadgeUpdates.unscheduleBadgeUpdates([res])
0
likes
40
pub points
0%
popularity

Publisher

unverified uploader

This iOS plugin for Flutter allows you to schedule badge updates on your app icon.

Homepage

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on schedule_badge_updates