简体   繁体   中英

Device Token for Push Notification

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

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

Apple is using a 64bytess hexadecimal string in their token. But how about the other 3 platforms?

Try adding another attribute when you register the device id on your server that indicates the devices OS. Then you can filter by this attribute and get the OS you want.

You could try saving the tokens in different tables. For example, Apple in one, Android in the other.

Or like what marimaf said, add another attribute to be sent to the server. For example,

Apple - App

Android - And

BlackBerry - BB

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM