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
- Scheduled works locking the entire Maria...
I have a scheduled function and apparently that or something is locking the entire MariaDB database and Appwrite is giving MariaDB errors. This error persists e...
- Python Function not working
I am getting this issue as well. Doesnt look like there was a solution as you guys were not able to replicate. Below is my code as well as the error. I started...
- Function was working: Failed to load ent...
I had a Bun function deployed two months ago working until 2 days ago on a daily basis, now I'm getting: Failed to load entrypoint, file src/main.js does not ex...