checkNotificationPermission method
Check if notification permission is granted.
Implementation
@override
Future<bool> checkNotificationPermission() async {
try {
// Check if the browser supports notifications
if (!_isNotificationSupported()) {
return false;
}
return web.Notification.permission == 'granted';
} catch (e) {
// Handle browsers that don't support notifications
return false;
}
}