schedule_badge_updates

Creator: coderz1093

Last updated:

0 purchases

schedule_badge_updates Image
schedule_badge_updates Images
Add to Cart

Description:

schedule badge updates

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])
copied to clipboard

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.

Related Products

More From This Creator