# Push Notification Keys

The Push VAPID Public Key is generated as part of a Web Push VAPID key pair.

It does not come from Google Workspace, Gmail, cPanel, or the domain DNS.

## Recommended Generation

Use the Web Push CLI on a development machine:

```bash
npx web-push generate-vapid-keys
```

It prints:

- Public Key: save this in Settings as `Push VAPID Public Key`
- Private Key: save this in Settings as `Push VAPID Private Key`

Keep the private key secret. The browser only receives the public key.

## Subject

Use:

```text
mailto:shahidmunir@crescentcollege.edu.pk
```

## Current App Status

The app can store browser push subscriptions after the public key is configured.
Actual external push delivery still requires a server-side Web Push sender or cron job using the private key.

Until that sender is installed, operational alerts still work through:

- In-app messages
- Notifications page
- Email fallback/logging where configured
