如何检查 BlackBerry BES 中是否存在特定用户(电子邮件/PIN)?
我有一个应用程序需要通过 BES 向用户发送推送通知。
问题是我们有多个未连接的 BES 服务器,有时用户会从一台服务器更改到另一台服务器以实现负载平衡,而我们没有收到通知。发生这种情况时,我需要找到用户当前所在的服务器(然后保留该位置,因此下次默认情况下它将尝试使用该服务器推送)
有没有办法询问 BES 服务器中是否存在用户?现在,我们正在尝试循环发送推送通知的服务器,如果用户未注册,连接将引发异常并出现 Web 403 错误,但这有点慢。
注意:我们不使用 SDK,我们使用纯 http post 消息与服务器通信。
I have an app that needs to send PUSH notifications to users through a BES.
The problem is that we have multiple unconnected BES servers, and users are sometimes changed from one server to another for load balancing, and we are not notified of that. When that happens I need to find in which server the user is currently on (and then persist that, so next time it will try to push with that server by default)
Is there a way to ask the BES server if a user exists in it? Right now we are attemping to cycle through the servers sending a push notification, and if the user is not registered with it, the connection will throw an exception with a web 403 error, but this is kind of slow.
NOTE: we are NOT using the SDK, we are using plain http post messages to communicate with the server.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论