PushManager subscription promise never fulfill nor reject

前端 未结 6 1108
無奈伤痛
無奈伤痛 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.

    0 讨论(0)
  • 2021-02-14 07:45

    This issue is reproducible on chrome 55.0.2883.87 on Windows 7. The subscribe promise is neither resolving nor rejecting. But this is happening only on one machine with the combination mentioned

    0 讨论(0)
  • 2021-02-14 07:55

    I had the same issue in Chrome 67, and a browser restart has fixed it.

    0 讨论(0)
  • 2021-02-14 08:05

    It appears that the Chromium Team was working on it. If I'm not mistaken, a fix will be release on Chrome 55

    0 讨论(0)
  • 2021-02-14 08:05

    Update and restart my google chrome was resolved for me

    0 讨论(0)
  • 2021-02-14 08:05

    I had the same issue while using a corporate proxy. Because there's no Internet connection, the subscription cannot be established and the Promise never resolves.

    0 讨论(0)
提交回复
热议问题