
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
- Adding custom domain to Appwrite project
My app is hosted on Vercel on domain todo.velleb.com. On PC, the OAuth logins like GitHub, Discord and Google work and create the account and log in. On mobile ...
- Auth ( OTP Session )
Hi, i would like to ask about OTP session login, may i know is it doable for dynamic/variable for sender,reply-to or not?
- Sites not enabled on desktop view, but a...
Strange behaviour, I notice my account has sites available on my mobile view but not when i log in to cloud via laptop.
