Skip to content

requestNotificationConsent

requestNotificationConsent(signer, derivationOrigin?): Promise<NotificationConsentStatus>

Defined in: src/client/notification-consent.ts:63

Asks the user, through the identity provider, whether this application may notify them, and registers the browser for delivery where they agree.

A refusal is an answer: it comes back as granted: false rather than as an error, because the user decided and the application has something to render.

Signer

The channel to the identity provider.

string

The origin the account is derived for, where the application signs in under one other than its own.

Promise<NotificationConsentStatus>

What the provider recorded, read back rather than reported from the screen.

Where the request asked not to render.

Where the provider does not notify.