Back

Push Messaging Error

  • 0
  • Flutter
  • Messaging
  • Cloud
frankenstein
1 Nov, 2024, 18:41

am getting this when i send a push message from appwrite console 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

TL;DR
Issue: Error occurs while sending push message from the appwrite console due to a missing string key. Solution: Provide a valid string key when sending the push message to resolve the error.
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