hasPermission method

  1. @Deprecated('User permissionState() instead.')
Future<String> hasPermission()

Returns a promise that resolves to the PushPermissionStatus of the requesting webapp, which will be one of granted, denied, or default.

Implementation

@Deprecated('User permissionState() instead.')
Future<String> hasPermission() =>
    promiseToFuture(_callMethod(_delegate, 'hasPermission', []));