Lets say i have 50K users using my app. What would be the most efficient way sending notifications to all of them?
currently im storing in my MongoDB database a document for each user that has a user ID field and a registration token.
From the ionic documentation , the notification JSON file sent to ionic servers, has a field ‘Tokens’ that sends an array.
{
"tokens":[
"b284a6f7545368d2d3f753263e3e2f2b7795be5263ed7c95017f628730edeaad",
"d609f7cba82fdd0a568d5ada649cddc5ebb65f08e7fc72599d8d47390bfc0f20"
],
"notification":{
"alert":"Hello World!",
}
.
.
.
.
}
How will it react when passing an array of 50K tokens ??
What is the proper way doing so?