In the current implementation, when a WebPush variant is created the user has to create somewhere a VAPID Keypair (public and private key) and upload them to the UPS.
After that, the user only needs the public key (used as `applicationServerKey`) and can forget about the private key.
This has 2 drawbacks: 1. The user have to search where and how to generate the keys 2. If the user loses the public key, his only choice is to create a new Variant with new keys.
It would be better if, when creating the variant, the UPS would create automatically a keypair and, in the variant details, would give the user the details of the public key so that he can download or copy/paste it. keypair |
|