files/en-us/web/api/pushmanager/permissionstate/index.md
{{ApiRef("Push API")}}{{SecureContext_Header}}{{AvailableInWorkers}}
The permissionState() method of the
{{domxref("PushManager")}} interface returns a {{jsxref("Promise")}} that resolves to a
string indicating the permission state of the push manager. Possible
values are 'prompt', 'denied', or 'granted'.
[!NOTE] As of Firefox 44, the permissions for Notifications and Push have been merged. If permission is granted for notifications, push will also be enabled.
permissionState()
permissionState(options)
options {{optional_inline}}
userVisibleOnly
applicationServerKey
A {{jsxref("Promise")}} that resolves to a string with a value of
'prompt', 'denied', or 'granted'.
{{Specifications}}
{{Compat}}