Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support jwt for live activity #264

Open
chanphiromsok opened this issue Jul 2, 2024 · 0 comments
Open

support jwt for live activity #264

chanphiromsok opened this issue Jul 2, 2024 · 0 comments

Comments

@chanphiromsok
Copy link

chanphiromsok commented Jul 2, 2024

LiveActivity Push using APNs

  • when generating a token from pigeon I see that joken adds an extra header to jwt causing Apple reject jwt token when sending a push request
  • I used an Authentication Token .p8 file to generate token base request with http2
  • temporary solution I use jose
  • my solution to generate jwt token for apns live activity https://gist.github.com/chanphiromsok/5f47832cc1b82c1e6c3e8736507fe4f4
  • Apple does not allow headers to have type : "JWT"
   #accepted header
 headers = %{"alg" => "ES256", "kid" => @key_id}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant