Device ID for Push Notification

I am implementing a push notification service. I need to create a database to store all device tokens from 4 mobile platforms. I want to organize them according to my platforms (iOS, Android, BlackBerry, WP7). But what are the ways to differentiate platforms, so if I want to send a message only to Android users, other platforms will not receive it.

I use ManicNetwork, but, unfortunately, the software does not help to differentiate platforms.

Apple uses a 64-byte hexadecimal string in its token. But what about the other three platforms?

+4
source share
2 answers

You can try storing tokens in different tables. For example, Apple in one, Android in another.

Or, as the marifaf said, add another attribute that will be sent to the server. For instance,

Apple - App

Android - And

BlackBerry - BB

0
source

Try adding another attribute when you register the device identifier on your server, which indicates the device OS. Then you can filter this attribute and get the desired OS.

+1
source

Source: https://habr.com/ru/post/1381614/


All Articles