如何从所有用户获取设备令牌信息以进行推送通知?
我想开发自己的系统,通过反馈和字典来跟踪它们。我想发送广播消息。
需要明确的是,我想将设备令牌从用户的设备获取到我的推送服务器。
我觉得我遗漏了一些明显的东西。请帮我。
I don't see how http://developer.apple.com/library/ios/#documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Introduction/Introduction.html#//apple_ref/doc/uid/TP40008194-CH1-SW1 tells me how to get device tokens for Push. I've read a couple of books, but they are of no help.
I want to develop my own system to keep track of them via feedback and via a dictionary. I want to send broadcast messages.
To be clear, I want to get the device tokens from my users' devices to my Push server.
I feel I am missing something obvious. Please help me.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
当用户接受推送通知时,将使用带有以下信息的 NSData 对象调用
didRegisterForRemoteNotificationsWithDeviceToken:
方法:When the user accepts push notification the
didRegisterForRemoteNotificationsWithDeviceToken:
method will be called with an NSData object with the info:该应用程序负责将其发送到您的推送服务器。您必须定义自己的方法来执行此操作,例如 HTTP POST 或其他一些专有协议。
例如,Urban Airship 的 iOS 库向其服务器发出 HTTP 请求。请参阅 UAirship.m 文件。
The app is responsible for sending it to your Push Server. You have to define your own method to do this, e.g. HTTP POST or some other proprietary protocol.
For example, Urban Airship's iOS library makes an HTTP request to its server. See the
registerDeviceTokenWithExtraInfo
method in the UAirship.m file.