From f9e8216781a6cf9e6d82c936394b5f471c0255f8 Mon Sep 17 00:00:00 2001 From: Jake Barnby Date: Tue, 6 Feb 2024 04:13:56 +1300 Subject: [PATCH] Fix FCM init --- src/Appwrite/Platform/Workers/Messaging.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }; }