A Flutter plugin π to schedule Local Notifications. Ready for iOS and Android π
A Flutter plugin π to schedule Local Notifications. Ready for iOS and Android π
Add this to your package's pubspec.yaml file:
dependencies:
schedule_notifications: "^0.1.8"
ScheduleNotifications.schedule("Notification Text", new DateTime.now(), []);
List daysToRepeat = [DateTime.sunday, DateTime.monday]; // repeat every sunday and monday
ScheduleNotifications.schedule("Notification Text", new DateTime.now(), daysToRepeat);
ScheduleNotifications.unschedule();
int iconResourceId;
try {
iconResourceId = await _platform.invokeMethod('getIconResourceId');
} on PlatformException catch (e) {
Β Β print('Error on get icon resource id');
}
ScheduleNotifications.setNotificationIcon(iconResourceId);
ScheduleNotifications.requestAuthorization();
We would β€οΈ to see your contribution!
Distributed under the MIT license. See LICENSE
for more information.
Created by Fabricio Serralvo and Marcos Aoki.