import 'notification_bridge.dart'; import 'notification_models.dart'; /// The non-web bridge: there is no browser Notification API to reach. /// /// It reports `unsupported` honestly rather than pretending a notification was /// shown, so the surface falls back to the in-app `Needs you` channel. A native /// platform notifier would replace this through the same seam. class UnsupportedNotificationBridge implements NotificationBridge { const UnsupportedNotificationBridge(); @override NotificationEnvironment environment() => const NotificationEnvironment( supported: false, secureContext: false, permission: 'default', ); @override Future requestPermission() async => 'default'; @override bool show(NotificationMessage message, {void Function()? onTap}) => false; } NotificationBridge createNotificationBridge() => const UnsupportedNotificationBridge();