
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
- Logs do not work when debugging openrunt...
Hey there. Trying to debug some openruntimes functions locally. I manage to run the server and make requests to it, but for some reason the logger is not printi...
- Issue: Incorrect input type for cron sch...
Description: The input field for setting the function schedule is of type email, which prevents entering a valid cron expression. Error Message: Please include...
- AVIF file format as default
In appwrite, is it possible that whenever a user uploads an image it gets converted to a specific format for eg AVIF always? I know I can use cloud functions bu...
