You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -39,6 +43,28 @@ True to enable automatic requesting of permissions if needed.
39
43
True if permission is granted, else false.
40
44
41
45
**Access**: public
46
+
<aname="webNotification.requestPermission"></a>
47
+
48
+
### webNotification.requestPermission([callback])
49
+
Triggers the request permissions dialog in case permissions were not already granted.
50
+
51
+
**Access**: public
52
+
53
+
| Param | Type | Description |
54
+
| --- | --- | --- |
55
+
|[callback]|[<code>PermissionsRequestCallback</code>](#PermissionsRequestCallback)| Called with the permissions result (true enabled, false disabled) |
56
+
57
+
**Example**
58
+
```js
59
+
//manually ask for notification permissions (invoked automatically if needed and allowRequest=true)
0 commit comments