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
- Local Serverless Function Testing: Are D...
I have followed the instructions to get the CLI working, and have been able to log-in, initialize my project, and created a simple Python function, which calls ...
- Update user email using OTP
Hi, I am trying to implement email update using OTP, there is not password associated with the account. One solution I found online is creating appwrite functio...
- Magic Link token automatically consumed
Hi, I'm using the Magic Link auth system with Appwrite Cloud and I'm running into huge issues getting users to log in successfully. About 9 times out of 10, th...