PushManager subscription promise never fulfill nor reject

前端 未结 6 1111
無奈伤痛
無奈伤痛 2021-02-14 07:23

I am currently facing an issue with some Chrome (Chromium) version where the PushManager.subscribe promise from a ServiceWorker stays in a pending state

6条回答
  •  滥情空心
    2021-02-14 07:42

    The problem is with userVisibleOnly: true as a parameter.

    This was only introduced in chrome 47. Before that you need to pass it as a manifest parameter. https://johnme-gcm.appspot.com/manifest.json is a good example to follow.

提交回复
热议问题