Push permission
Asks for notification permission, then subscribes this browser to push with a VAPID public key generated for this demo. The resulting PushSubscription JSON is printed below and goes nowhere: there is no server, so no message will ever arrive. Unsubscribe when you are done.
Nothing is sent to OpenPWA.
Subscribing makes your browser request a subscription from its own push service, which issues the endpoint; the page then keeps the endpoint and keys to itself. The private half of the VAPID key pair was discarded after generating the public key, so nobody can use this subscription.
Preconditions
The code being run
Request permission and subscribe
Unsubscribe