Can't seem to get this working on Safari
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 25/100
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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.
- Langage dominant
- Python
- Étoiles
- 379
- Forks
- 61
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Aucun guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de web-push-libs/pywebpush
-
Difficulté 2/5 1-3 heures Accessibilité débutants 45/100
web-push-libs/pywebpush#190 · 2 commentaires ·
-
Async Send FunctionOuverte
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 25/100
web-push-libs/pywebpush#150 · 1 commentaire · 4 réactions ·
-
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 25/100
web-push-libs/pywebpush#149 · 4 commentaires ·
-
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 25/100
web-push-libs/pywebpush#147 · 8 commentaires ·
-
Error : Web push send from python backend to fire base using VAPI keys. Unhashable type:'slice'Ouverte
Difficulté 3/5 1-2 jours Accessibilité débutants 25/100
web-push-libs/pywebpush#145 · 7 commentaires ·
Toutes les issues de web-push-libs/pywebpush
Issues similaires
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
Graphify-Labs/graphify#4524 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
topoteretes/cognee#5982 ·
Les mainteneurs répondent en général sous 1 jour
-
Patches of derivations with `__structuredAttrs` are ignoredPeut-être pris @KiaraGrouwstra l’a pris aujourd’hui. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 81/100
nix-community/vulnix#184 ·
-
New InternshipOuvertenew_internship
Difficulté 1/5 Moins d'une heure Accessibilité débutants 65/100
-
Difficulté 2/5 1-3 heures Accessibilité débutants 64/100
aws-samples/sample-per-model-bedrock#295 ·
Les mainteneurs répondent en général sous 1 jour