Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The unsubscribe()
method of the PushSubscription
interface returns a Promise
that resolves to a boolean value when the current subscription is successfully unsubscribed.