Skip to content
Back

Message error

  • 0
  • Messaging
igor
29 Sep, 2025, 21:04

After trying to send a push notification from appwrite console I got this error: Failed sending to targets with error: Utopia\Messaging\Helpers\JWT::encode(): Argument #2 ($key) must be of type string, null given, called in /usr/src/code/vendor/utopia-php/messaging/src/Utopia/Messaging/Adapter/Push/FCM.php on line 62

I have FCM set up as a provider. Notifications already worked on my local server, and now it doesn't work when I moved to appwrite cloud.

TL;DR
Error message related to push notifications using FCM in Appwrite cloud. The issue seems to be with the key parameter that is required to be a string. Check FCM provider setup in Appwrite console.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more