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
- HUGE OUTRAGE IN APPWRITE, I CANNOT ACCES...
I have 2k users trying to access, sending me messages. What am I supposed to do? Please solve this asap.
- All my apps are not opening now
All my apps are not opening now 200+ apps are not opening plz fast
- My projects were deleted
Hello everyone, My projects were for some reason deleted. I got an email informing me about project inactivity, when I clicked to activate it again, it was sil...