Sending data / payload to the Google Chrome Push Notification with Javascript

前端 未结 6 426
一向
一向 2020-12-02 14:49

I\'m working on the Google Chrome Push Notification and I\'m trying to send the payload to the google chrome worker but, I have no idea how I receive this payload.

I

6条回答
  •  [愿得一人]
    2020-12-02 15:38

    Actually, payload should be implemented in Chrome 50 (release date - April 19, 2016). In Chrome 50 (and in the current version of Firefox on desktop) you can send some arbitrary data along with the push so that the client can avoid making the extra request. All payload data must be encrypted.

    Here is the the encryption details from developer : https://developers.google.com/web/updates/2016/03/web-push-encryption?hl=en

提交回复
热议问题