igorOriginal post
Android Developer
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.
Summary
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.