OK, I can guess the answer: “No.” …but here we go…
If I want to send a notification to a certain group of users, I have to:
- On user login (inside my app), register the user in ionic.io and register the device for push notifications.
- On token reception, save it in my database.
- When I need, in my backend I can select the users I want, get their tokens and send the notification through ionic.io REST API
But I wonder if that could be even simpler. Since ionic.io keeps track of registered users with their corresponding device tokens, can I take advantage of that system? I mean, as the dashboard allows to filter users and send a notification to all of them, can I send a notification directly to a user-id list instead of a device-token list? In other words, can I avoid to manage the tokens in my DB?