diff --git a/src/Appwrite/Platform/Workers/Messaging.php b/src/Appwrite/Platform/Workers/Messaging.php index 5bc1560166..57a0e5f648 100644 --- a/src/Appwrite/Platform/Workers/Messaging.php +++ b/src/Appwrite/Platform/Workers/Messaging.php @@ -398,7 +398,7 @@ class Messaging extends Action $credentials['teamId'], $credentials['bundleId'], ), - 'fcm' => new FCM($credentials['serviceAccountJSON']), + 'fcm' => new FCM(\json_encode($credentials['serviceAccountJSON'])), default => null }; }