unsubscribe method

JSPromise<JSBoolean> unsubscribe()

The unsubscribe() method of the PushSubscription interface returns a Promise that resolves to a boolean value when the current subscription is successfully unsubscribed.

Implementation

external JSPromise<JSBoolean> unsubscribe();