scheduled_notifications 0.0.1 copy "scheduled_notifications: ^0.0.1" to clipboard
scheduled_notifications: ^0.0.1 copied to clipboard

outdatedDart 1 only

A flutter plugin for scheduling notifications on Android.

scheduled_notifications #

A flutter plugin for scheduling notifications on Android.

Usage #

To use this plugin, add scheduled_notifications as a dependency in your pubspec.yaml file. Note you have to specify minSdkVersion on 23 in your AndroidManifest.xml to use this plugin.

Example #

import 'package:scheduled_notifications/scheduled_notifications.dart';

void main() {
  runApp(new Scaffold(
    body: new Center(
      child: new RaisedButton(
        onPressed: _scheduleNotification,
        child: new Text('Schedule notification in 5 seconds'),
      ),
    ),
  ));
}

_scheduleNotification() async {
      int notificationId = await ScheduledNotifications.scheduleNotification(
          new DateTime.now().add(new Duration(seconds: 5)).millisecondsSinceEpoch,
          "Ticker text",
          "Content title",
          "Content");
}
8
likes
0
pub points
50%
popularity

Publisher

unverified uploader

A flutter plugin for scheduling notifications on Android.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on scheduled_notifications