This is the first time I go to the push notification service and I'm a little confused. I would like to have only some conceptual help, not code.
I need to create an application that needs to receive and register for different types of notifications. For example, in my application, I would like users to be able to register in the notification categories of the PROMO category and the NEWS notification category, I would like them to be able to choose which one they want to receive. Reading an Apple document, it was not so clear to me, it seems that as soon as the application is registered, I receive only one token and it seems impossible to get more tokens for different types of registration (for example, NEWS and PROMO), because the token is associated with application and device. It is right?
Another thing that is not so clear to me is that if a device is registered for a specific notification, is it possible to send a notification only to a set of devices?
If none of this is offered by Apple Push services, you think that you can work around this way: -I register a notification application if (PROMO || NEWS) is selected -I get a token -I send a token to my server, providing also additional information about the service that the user wants to subscribe -Server (provider) registers the token and type of subscription (PROMO || NEWS) -After I have a notification, I ask the server for all tokens registered for this particular category, and then I send a notification only to those devices Sites that are registered for this category.
Thanks for helping me, I'm really confused.
source share