Chrome Web通知推送未经授权的注册例外

问题描述:

我正在从服务器向订阅了服务器的用户实施推送通知.

I am implementing push notifications from my server to the users who are subscribed to my server.

现在,将推送通知发送给Firefox用户的工作就像一种魅力.但是,在Chrome上,我收到未经授权的注册错误.我正在使用Django作为后端.

Right now sending the push notifications to Firefox users works like a charm. However, on Chrome I get an Unauthorized Registration error. I am using Django as a backend.

此图中是错误的相关部分和我的代码(已编辑电子邮件)以及订阅.如果需要更多信息,请告诉我.

In this image are the relevant parts of the error and my code (email edited), aswell as the subscription. If any more information is needed please let me know.

有人知道为什么我不能在Chrome上发送推送通知吗?

Does anyone know why I can't send push notifications on Chrome?

我正在使用此库.

我刚刚推送了pywebpush 1.0.2,其中包括py-vapid 1.2.3.很抱歉延迟,但这是不可避免的.

I've just pushed pywebpush 1.0.2 which includes py-vapid 1.2.3. Sorry for the delay, but it was unavoidable.

请不要害怕针对软件包提出问题.我确实会尽快做出回应,这对所有人都有帮助.

Please don't be afraid to file issues against the package. I do try to respond fairly quickly and it helps out everyone.