Rank 3: Container
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.