Skip to content
Back

Is anyone able to use createPush with multiple users at once right now?

  • 0
  • Messaging
  • Cloud
memoonlite
31 Jul, 2025, 17:10

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.

TL;DR
Developers are experiencing issues when using the createPush method to send push messages to multiple users at once using FCM. The error "Failed sending with error: Unknown error" is displayed in the console when multiple users are specified. This seems to be a bug as it works fine for a single user. The latest SDK also does not resolve the problem.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more