Handle prompt-with-rationale
This commit is contained in:
parent
2f3bc6cc6f
commit
6231c75e34
1 changed files with 1 additions and 1 deletions
|
|
@ -302,7 +302,7 @@ class CapacitorNotifications implements IPushAdapter {
|
|||
async request(prompt = true) {
|
||||
let status = await PushNotifications.checkPermissions()
|
||||
|
||||
if (prompt && status.receive === "prompt") {
|
||||
if (prompt && ["prompt", "prompt-with-rationale"].includes(status.receive)) {
|
||||
status = await PushNotifications.requestPermissions()
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue