Skip to content

support jwt for live activity #264

@chanphiromsok

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}

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