Skip to content

support jwt for live activity #264

Description

@chanphiromsok

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}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions