SwoffSwoff

Push Notifications

Full schema for swoff.config.json features.pushNotifications — field, type, default, and description.

features.pushNotifications

FieldTypeDefaultDescription
pushNotificationsbooleanfalseEnable push notification subscription management. Generates swoff/push-notification/index.ts with subscribeToPush() / unsubscribeFromPush().

The VAPID public key is configured at runtime via swoff.configure({ push: { vapidPublicKey: "..." } }) for no-bundler projects, or directly in swoff/push-notification/index.ts for bundler projects.

On this page