H3nOriginal post
Flutter Developer
When creating a message target via flutter sdk via
final target = await _account.createPushTarget(
targetId: targetId,
identifier: deviceToken,
providerId: providerId,
);
and then creating a new message via web ui, there is an error showing up and the push is not send.
logs from web ui:
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 63
provider is fcm.
Appwrite version: 1.9.6
Flutter sdk version: ^25.0.0
Summary
FCM messages were not working until the user created a new FCM service account and used that instead. Now it works fine.