Thank you very much! The problem is, I checked the server logs, and I don't seem to get a 410 error from APN. How much time does it typically take for the token to start triggering this error? Is there another way I can delete invalid tokens without waiting for the 410 message?
Post
Replies
Boosts
Views
Activity
It’s important to note that the issue only arises in the production environment, not in the development environment.
production device token:
device token: 68c5c39325dbd5559de37a47d316b05ac5964e4824f79d4fcca3cd4ccbbbea6d
Hello,
Getting On airplane mode around 11 PM.
Getting OFF airplane mode around 10 AM
I sent the remote push notification at 2024-05-27 04:09 UTC and this is the response I got from Apple at 2024-05-27 04:09 UTC:
{"headers":{":status":"200","apns-id":"792ebfb6-9292-472a-8487-a4497a0246df"},"body":""}
Details of the notification:
topic and bundle id: co.flowmd.flowmd
priority: 10
expiration: 2 days from the time the notification has been sent
As another workaround, Not using mediaDevices.enumerateDevices() seems to solve the problem as well