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
Copy file name to clipboardExpand all lines: README.md
+9-3Lines changed: 9 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -316,6 +316,8 @@ request is an object containing:
316
316
-`sound` : The sound played when the notification is fired.
317
317
-`category` : The category of this notification, required for actionable notifications.
318
318
-`isSilent` : If true, the notification will appear without sound.
319
+
-`isCritical` : If true, the notification sound be played even when the device is locked, muted, or has Do Not Disturb enabled.
320
+
-`criticalSoundVolume` : A number between 0 and 1 for volume of critical notification. Default volume will be used if not specified.
319
321
-`userInfo` : An object containing additional notification data.
320
322
321
323
---
@@ -548,16 +550,19 @@ Requests notification permissions from iOS, prompting the user's dialog box. By
548
550
-`alert`
549
551
-`badge`
550
552
-`sound`
553
+
-`critical`
554
+
555
+
`critical` requires special entitlement that could be requested here: https://developer.apple.com/contact/request/notifications-critical-alerts-entitlement/
551
556
552
557
If a map is provided to the method, only the permissions with truthy values will be requested.
553
558
554
559
This method returns a promise that will resolve when the user accepts, rejects, or if the permissions were previously rejected. The promise resolves to the current state of the permission.
0 commit comments