mirror of
https://github.com/hanzoai/firebase-js-sdk.git
synced 2026-09-24 16:59:10 +00:00
1.6 KiB
1.6 KiB
Project: /docs/reference/js/_project.yaml Book: /docs/reference/_book.yaml page_type: reference
{% comment %} DO NOT EDIT THIS FILE! This is generated by the JS SDK team, and any local changes will be overwritten. Changes should be made in the source code at https://github.com/firebase/firebase-js-sdk {% endcomment %}
RegisterOptions interface
Options for register(). Same shape as GetTokenOptions for SW and VAPID configuration.
Signature:
export interface RegisterOptions
Properties
| Property | Type | Description |
|---|---|---|
| serviceWorkerRegistration | ServiceWorkerRegistration | Optional service worker registration. See GetTokenOptions.serviceWorkerRegistration. |
| vapidKey | string | Optional VAPID key. See GetTokenOptions.vapidKey. |
RegisterOptions.serviceWorkerRegistration
Optional service worker registration. See GetTokenOptions.serviceWorkerRegistration.
Signature:
serviceWorkerRegistration?: ServiceWorkerRegistration;
RegisterOptions.vapidKey
Optional VAPID key. See GetTokenOptions.vapidKey.
Signature:
vapidKey?: string;