브라우저 전경 알림 표시와 click routing의 첫 구현을 남기고, 리뷰에서 확인된 실제 web click bridge 보완 계획을 함께 기록한다.
25 lines
1.1 KiB
Dart
25 lines
1.1 KiB
Dart
import 'package:flutter_web_plugins/flutter_web_plugins.dart';
|
|
|
|
import 'web/browser_notification_interop.dart';
|
|
import 'web/browser_notification_interop_web.dart';
|
|
|
|
/// Web platform implementation for the nexo_messaging plugin.
|
|
///
|
|
/// This file is **web-only** and should never be imported by
|
|
/// Android/iOS/macOS common Dart code. It registers this plugin as a
|
|
/// Flutter web plugin so that consuming web apps resolve the web
|
|
/// implementation automatically through the generated registrant.
|
|
///
|
|
/// Foreground permission, notification display, click routing,
|
|
/// service-worker, and VAPID logic are wired in later tasks.
|
|
class NexoMessagingWeb {
|
|
/// The browser notification interop instance used by this plugin.
|
|
/// On web builds this resolves to [BrowserNotificationInteropImpl].
|
|
static BrowserNotificationInterop interop = BrowserNotificationInteropImpl();
|
|
|
|
/// Register this plugin for web platforms.
|
|
static void registerWith(Registrar registrar) {
|
|
// Baseline registration: future tasks will attach interop
|
|
// mappers (permission request, display, event routing) here.
|
|
}
|
|
}
|