iPhone 带有客户端 ID 的个性化推送通知 - 如何实现?
我从 iPhone 上的推送通知开始。 我已经阅读了文档和一些教程。 我想做的: 我的服务器存储由用户存储的应用程序设置。根据这些设置,我想向他发送推送通知。
示例: “天气警告”开关打开 ->向该客户发送通知 “天气警告”开关关闭 ->不要向此客户发送通知
与 Facebook 类似,当它让您知道有人在您的板上发布了消息时。
服务器如何知道“token XYZ”与“clientId XYZ”匹配?
提前致谢, 史蒂夫
I'm starting with push notifications on the iPhone.
I've read the documentation and several tutorials.
What I want to do:
My server stores app-settings, stored by the user. Depending on these settings I want to send him a push notification.
Example:
Switch for "Weather warnings" is ON -> send notification to this client
Switch for "Weather warnings" is OFF -> don't send notification to this client
Similar to Facebook, when it lets you know, that someone has posted a message on your board.
How might the server be able to know that "token XYZ" matches to "clientId XYZ"?
Thanks in advance,
Steve
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用设备 UDID 作为密钥,然后绑定到设备的 PUSH 令牌。通过 HTTP 请求,您将发送 UDID+令牌对并将它们存储在服务器上。当设备上的用户更改其设置时,您可以将它们与服务器上的设备 UDID 一起发送。
Use device UDID as key and then bind to it PUSH token for device. With HTTP request you will send UDID+token pairs and store them on server. When user on device changes it's settings, you send them with device UDID on server.