addNotification method

  1. @override
Future<void> addNotification(
  1. JSNotification notification
)
override

Send notification with interop.JSNotification to service worker

Implementation

@override
Future<void> addNotification(interop.JSNotification notification) {
  final id = notification.options?.tag ?? const Uuid().v4();
  _addNotification(id, notification);
  return serviceWorkerManager.postNotification(notification);
}