Notification error: APN invalid token
Asked Answered
P

1

11

I stopped receiving the push notifications after the certificate got expired and new certificate has been created. I've updated the p12 certificate on the server.

I'm using Pusher application to debug the issue further and I tried importing the p12 certificate with the device token. It says "APN invalid token".

Same method works for my other application.

Notification Error: APN invalid token Please help me with this I'm not an expert, I tried searching the solution in SO but couldn't find the exact problem.

Any tips will also be appreciated. Thanks in advance!

Pica answered 15/6, 2017 at 17:32 Comment(2)
Most likely the reason will be - using sandbox device token with production APNS server or vice versa. Can you please re-check & make sure that both app & server are on same production environment?Grizzled
Hi, did you solve this problem?Tanishatanitansy
H
0

Check project configuration - it has to be Release not Debug.

Harem answered 16/8, 2018 at 12:44 Comment(1)
Reading around, it seems this is not exactly the case. If your app is built in release mode, you need to use a production certificate, key, and APN token. Alternatively, if you build in debug mode, you need to use a sandbox certificate, key, and APN token. See #24492219Russi

© 2022 - 2024 — McMap. All rights reserved.