Hello,
Is there a way to use Ionic Push to send a push notification to all the registered devices at once (without entering every single device token)?
Thank you!
Wilson
Hello,
Is there a way to use Ionic Push to send a push notification to all the registered devices at once (without entering every single device token)?
Thank you!
Wilson
you have to store your regids/tokens in your backend / database.
After that you can use http://docs.ionic.io/v1.0/docs/push-sending-push
to send to all devices.
I think the Remote-API will be extended in the future, because the whole service is marked as alpha.
Maybe you are getting an API-endpoint to get all regids (without storing all on your own).
And i do not know if ionic push already considers the limitation of sending a push to 1000 devices at once for gcm.
Weâre currently working on adding a âSend to everyoneâ feature for this. This is something I was looking for too, so donât feel left out
Should be added soon
When do you think it will be ready?
Are there new information for this feature?
Just searching on an issue Iâm having related to the âsend_to_allâ attribute and came across this thread. Iâm experiencing âsend_to_all: trueâ only working on devices once I have done a push that includes that devices unique token. The device is logging it has registered itâs token but âsend_to_all: trueâ does not work no matter how many times you try. However if you send a push including the devices token it receives this push and will then receive all subsequent pushes to that just use âsend_to_all: trueâ. Is there any reason you can think of that this would be happening. We have a very simple use case where we donât want to have to send and store device tokens on a server.
Hi @mhartington. I noticed the parameter âtokensâ is an array. I tested two tokens and the notification was sent for two respective devices properly. I would like to know if there is a limit of tokens on that array. I did not found any explanation about this on the docs. Thanks!!!
https://api.ionic.io/push/notifications
{
âtokensâ: [âXXXXXXXXXXXXâŚâ, âYYYYYYYYYYYYâŚâ],
âprofileâ: âtestâ,
ânotificationâ: {
âmessageâ: âWelcome!!!â
}
}
+1.
@mhartington Hi, Please provide info for sending notification to multiple device tokens and also fetching their status per token in one API call.
Is there any way to implement this? and how?