Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The getKey()
method of the PushSubscription
interface returns an ArrayBuffer
representing a client public key, which can then be sent to a server and used in encrypting push message data.