requestBackgroundPermissions method

  1. @override
Future<bool?> requestBackgroundPermissions()
override

Request notifications permission. Returns true if permission is granted, false otherwise. Documentation: https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/permissions/request

Implementation

@override
Future<bool?> requestBackgroundPermissions() async {
  return NotificationService.instance.requestPermission();
}