Help Needed: APNS Push Notification ES256 JWT Error
Hello, I'm trying to implement Apple Push Notification Service (APNS) in my app and encountering a JWT authentication error. I need some assistance.
Problem Description
When trying to send push notifications, I get the following error:
What I've Tried
I've generated certificates and keys from my Apple Developer account and downloaded the p8 file. I'm trying to authenticate to APNS using this key.
Looking at the error message secretOrPrivateKey must be an asymmetric key when using ES256, it seems that when generating the JWT token using the ES256 algorithm, the provided key is either not in the correct asymmetric key format or is not being loaded properly.
this is p8 file content < Private Key input value
-----BEGIN PRIVATE KEY-----
(codes)
-----END PRIVATE KEY-----
6 Replies
Help!
@sikmin
Could you please share
transactionId
from activity feed page?4cfde96f-4362-412a-8582-ec54b9500ea4
Thanks!
@sikmin
I am able to reproduce the issue. I will keep you updated on the fix
Thanks Pawan, I'll be waiting for the update!
novu is a really cool service. I want to use novu pro, but I have difficulty setting up my service because of an APNS error. Is there any update I can refer to?
hey 👋🏻
it is taking a bit longer than expected to fix this bug. I will push the team on this