SDK reference
usePush
Returns subscription helpers and reactive state.
apiBase | string | Full URL of the project's API base. Use the value shown in the SDK setup card. |
vapidPublicKey | string | Project VAPID public key. |
userId | string? | Optional — your application user id. Lets the dashboard / REST API target sends to specific users. |
swPath | string? | Defaults to /sw.js. |
swScope | string? | Override the SW registration scope (e.g. "/" when serving from a sub-path). |
Returned: subscribe(), unsubscribe(), subscription, permission, isSupported, isSubscribing, error.