推送通知设备令牌 [英] Device Token for Push Notification

查看:146
本文介绍了推送通知设备令牌的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我实现一个推送通知服务。我需要创建一个数据库来存储从4移动平台中的所有设备令牌。我想相应的组织他们自己的平台(iOS版,Android,黑莓,WP7)。但什么是区分平台,因此,如果我想将消息发送给只有Android用户,其他的平台将不会收到它的方式。

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.

我使用ManicNetwork但遗憾的是,该软件不利于区分不同的平台。

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

苹果使用他们的令牌64bytess十六进制字符串。但如何对其他3个平台?

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

谢谢,

汉德

推荐答案

您可以尝试在不同的表保存令牌。例如,苹果于一体,Android在其他。

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

或者像什么marimaf所述,添加另一个属性将被发送到服务器。例如,

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

苹果 - 应用

Android的 - 和

黑莓 - BB

这篇关于推送通知设备令牌的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆