Can't seem to get this working on Safari
还没有人认领这个 Issue。
评估
调研方向
Start with the README's “Sending data using webpush (one call)” section and compare its vapid_claims handling with Apple's documented JWT requirements for iOS Safari. Reproduce the 403 BadJwtToken with the reported configuration and identify a verified cause; done means Safari push succeeds or the limitation and required configuration are documented.
由索引模型根据 Issue 内容生成。
描述
Working fine on Chrome, FF, Opera, Edge etc tested on Win 10, Win 11 and Android - but not IoS Safari. Whatever I do, I get:
Push failed: 403 Forbidden
Response body:{"reason":"BadJwtToken"}
And this is reported by many people all over the place, so I am not the only one suffering with Apple the special snowflake.
Anybody has a clue what can be tried? The apple documentation says nothing much here: https://developer.apple.com/documentation/usernotifications/sending-web-push-notifications-in-web-apps-and-browsers
"The JSON web token (JWT) has one of following issues: The JWT is missing. The JWT is signed with the wrong private key. The JWT subject claim isn’t a URL or mailto:. The JWT audience claim isn’t the origin of the push service where you sent the request. The JWT expiration parameter is more than one day into the future."
I also changed the "sub" to "subject" in the vapid_claims (https://github.com/web-push-libs/pywebpush?tab=readme-ov-file#sending-data-using-webpush-one-call) since the Apple documentation mentions a "The JWT subject claim" in particular - but no luck.
- 主要语言
- Python
- 星标
- 379
- 派生
- 61
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
web-push-libs/pywebpush 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 45/100
web-push-libs/pywebpush#190 · 2 条评论 ·
-
难度 5/5 一周以上 新手友好度 25/100
web-push-libs/pywebpush#150 · 1 条评论 · 4 个 reaction ·
-
难度 5/5 一周以上 新手友好度 25/100
web-push-libs/pywebpush#149 · 4 条评论 ·
-
难度 5/5 一周以上 新手友好度 25/100
web-push-libs/pywebpush#147 · 8 条评论 ·
-
难度 3/5 1-2 天 新手友好度 25/100
web-push-libs/pywebpush#145 · 7 条评论 ·
查看 web-push-libs/pywebpush 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 85/100
维护者通常 1 天内回复
-
infrastructure qa
难度 2/5 1-3 小时 新手友好度 84/100
khuisman/mcp-gee-sweet#1068 ·
维护者通常 1 天内回复
-
area:ecosystem documentation
难度 2/5 1-3 小时 新手友好度 78/100
Chelis-Lang/chelis#3866 ·
维护者通常 1 天内回复
-
`lvm_compact` has no self-hosted twin, and `docs/158` §5 says every language-face component must未关闭bug sev-3 vm
难度 2/5 1-3 小时 新手友好度 65/100
-
issue: Picking a prompt from the / menu in a channel inserts a command chip instead of the prompt未关闭bug confirmed issue
难度 2/5 半天 新手友好度 78/100
open-webui/open-webui#32712 · 2 条评论 ·
维护者通常 1 天内回复