mint1GOriginal post
Flutter Developer
I am trying to implement appwrite fully into my app and am switching over from firebase. I registered FCM as a Provider and tried to send a push message via the dashboard but get 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 61
This leads me to belive its a issue in my appwrite instance. What could cause this?
Summary
Issue: Error encountered when sending push message from dashboard, possibly related to FCM Provider registration.
Solution: The error message indicates a problem with the key being provided in the FCM implementation. Check the key type and ensure it is a string. This issue likely resides within the appwrite instance rather than the app implementation.