user-notifications

Installation
SKILL.md

User Notifications

Prerequisite

Load the user-sign-in skill first. The sender list below is served from the app's primary origin, which that skill elects.

How it works

Your canister can notify your app's users, on their devices and while the app is closed. The canister addresses a user; Internet Identity holds that user's devices and delivers to them, so there is no push service, no VAPID keys, and no device tokens in the app.

Three pieces, all required. Missing any one of them produces silence rather than an error at the point you left out.

  1. The frontend asks the user's consent, through II.
  2. The origin names the sending canister at /.well-known/ii-notification-senders.
  3. The canister sends, through the identity-notifications library.

1. Consent, in the frontend

Needs @icp-sdk/auth 11.1.0 or later. Earlier 11.x has none of these methods.

Installs
20
GitHub Stars
40
First Seen
11 days ago