Hey everyone,
I'm trying to add push notifications to my app but keep getting an error: "Expired device token."
I have an Appwrite function triggered when a document is created in a collection. The function receives a userID, finds the corresponding targetID, and sends it to messaging. According to my logs, everything seems correct—it finds the right targetID and calls createPush.
However, the messaging service keeps failing with the error "Expired device token." The provider configuration appears correct. Also, I've tested the same device token directly with Apple Push Notifications, and it worked fine—I received the notification on my phone. This seems to happen when I run and my phone is connected to XCode.
when testing through TestFlight, the error differs to: TopicDisallowed
Does anyone know what might be causing this issue?
Thanks for any help!
Recommended threads
- Project restoration button in console
The project restore button in console is taking no effect, i have tried several times and still nothing, it gives same popup if i reload
- SGP region: console returns 401 for all ...
Cloud console cannot open my projects in the Singapore (SGP) region. All console requests return HTTP 401, plus a 503 on analytics.appwrite.io. - Account email...
- Auth not working
guys my appwrite auth isnt working? oauth works (Sign in with google n discord) i have 2 websites deployed where do i get help when i do sign in with email and ...