ServiceWorkerRegistration

This ServiceWorker API interface represents the service worker registration. You register a service worker to control one or more pages that share the same origin. Available only in secure contexts.

MDN Reference

Properties

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
suspend fun showNotification(title: String, options: NotificationOptions = definedExternally)
Link copied to clipboard
fun showNotificationAsync(title: String, options: NotificationOptions = definedExternally): Promise<Void>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
suspend fun update()
Link copied to clipboard