requiresBackgroundPermissions method

  1. @override
Future<bool> requiresBackgroundPermissions()
override

Queries current window for notifications permission. Returns true if permission is granted, false otherwise. Documentation: https://developer.mozilla.org/en-US/docs/Web/API/Permissions/query

Implementation

@override
Future<bool> requiresBackgroundPermissions() async {
  return NotificationService.instance.hasPermission();
}