JSON.stringify
.WebPush\Subscription
object from the JSON string using the dedicated method WebPush\Subscription::createFromString
.aesgcm
will be used. This encoding indicates how the payload of the notification should be formatted. The PushManager object from the Push API may list all acceptable encodings. In this case, it could be interesting to set these encodings to the Subscription object.supportedContentEncodings
is important. First supported item will be used. If possible, AES128GCM
should be used as prefered content encoding.