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.
Parameters
Section titled “Parameters”signer
Section titled “signer”Signer
The channel to the identity provider.
derivationOrigin?
Section titled “derivationOrigin?”string
The origin the account is derived for, where the application signs in under one other than its own.
Returns
Section titled “Returns”Promise<NotificationConsentStatus>
What the provider recorded, read back rather than reported from the screen.
Throws
Section titled “Throws”Where the request asked not to render.
Throws
Section titled “Throws”Where the provider does not notify.