The current notification implementation lacks OS permission handling. Users can toggle Firestore preferences but notifications won't arrive if OS permission is denied. There's no consent flow, no permission status detection, and no way to open system settings when permission is denied.
permission_handler package integration for notification permission statusosPermissionGranted: bool? field in NotificationPreferencesDto to track user's permission decision historyNotificationSettingsView to show disabled state with "Open Settings" when OS permission deniedNotificationSettingsViewModel to sync toggle state with OS permissionNotificationPreferencesService to handle OS permission sync on app startupnotification-preferences (MODIFIED)lib/notifications/ - Permission handling service, consent widgetslib/households/views/home/ - CTA banner integrationpubspec.yaml - Add permission_handler dependency
Reacties