A iOS Darwin Notification plugin for Flutter. This plugin provides a cross-platform (iOS, Android) API to request and call native darwin notification center.
- Darwin notification center plugin for ios.
- Support to send notification to darwin notification center.
To use this plugin, add flutter_darwin_notification
as a dependency in your pubspec.yaml file. For example:
dependencies:
flutter_darwin_notification: any
import 'package:flutter_darwin_notification/flutter_darwin_notification.dart';
/// New instance
final center = DarwinNotificationCenter();
/// Observe notification
final stream = center.observe(name: 'notification-name', behavior: Behavior.coalesce);
stream.listen((result) {
/// Do something
});
/// Post notification
center.postNotification('notification-name', object: '1', userInfo: {'1': '2'});
Please file any issues, bugs or feature request as an issue on our Github page.
If you would like to contribute to the plugin (e.g. by improving the documentation, solving a bug or adding a cool new feature), please carefully review our contribution guide and send us your pull request.
This Flutter object cache package for Flutter is developed by modool. You can contact us at [email protected]