Hello everyone!
I use the createPush method in a function to send push messages to users (using FCM). The code below works fine. You can see I'm sending a push notification to one user:
messaging.createPush(
'unique()',
'Message', // title
'message, // body
[], // topics
['688b8594711c1ec610cc'], // users
[], // targets
{
type: 'received',
}, // data (optional)
);
But it stops working as soon as I add another user, like this (multiple users):
messaging.createPush(
['688b8594711c1ec610cc', '688b84fc1fa7be4ef838'], // users
);
It shows the following error in the web console:
Failed sending to target c_c-X0T_Sz232D8-HWqE08Lyxozn6eYaH_gfI9y4343OrYXkwZrNTE with error: Unknown error
Failed sending tQXK_e-YKSs2a5DRqQsiKbsgg-kCtTGtC00 with error: Unknown error
So I was wondering, is sending push notifications to multiple users working for anyone right now? Or is this a bug? I tried the latest SDK, the problem still persists.
Recommended threads
- > AppwriteException: The requested servi...
When trying to read or write from my database I get the following error: > AppwriteException: The requested service is disabled. You can enable the service from...
- 500 Server error
getting same 500 status This is my appwrite project: https://cloud.appwrite.io/console/project-fra-691932db0036241caa0e/overview/platforms Help how to open th...
- Project is currently blocked
When accessing the Appwrite console, I receive the message: "Project is currently blocked. Access to this project is restricted. Contact support if the issue pe...