无法在示例 BlackBerry 推送应用程序中注册 [英] Cannot register in sample BlackBerry push application

查看:37
本文介绍了无法在示例 BlackBerry 推送应用程序中注册的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个需要使用 PUSH API 的 BlackBerry 应用程序.我已经在 RIM 注册,他们已经向我发送了评估服务的凭据.在我的 BlackBerry 设备中,我安装了示例推送 API 应用程序,只是为了测试推送消息是否有效.设置可公开访问的内容提供程序 URL 后,我输入了示例应用程序的所有详细信息,以注册它以接收通知消息.尝试注册时,它要求输入用户名和密码,但我不知道它们的用途.在从 RIM 收到的电子邮件中,有服务器应用程序和内容提供商管理门户应用程序的密码,但没有推送客户端的密码.

I am developing a BlackBerry application in which I need to use PUSH API. I already have registered with RIM and they have sent me the credentials for evaluation service. In my BlackBerry device, I installed sample push API application just to test that the push messaging works. After setting the content provider URL which is publicly accessible, I entered all the details for the sample application to register the it for receiving notification messages. When trying to register it asks for username and password but I don't know what they are for. In the email received from RIM, there are passwords for server application and content provider admin portal applications but not for the push client.

当我添加任意用户名和密码时,它失败并显示消息:java.lang.Exception Registration with Push API failed,由于端口不可用.但是当我取消注册时,它会使用给定的任意用户名和密码成功取消注册用户.通过我使用 RIM 电子邮件中提供的端口.

When I added an arbitrary username and password it fails with the message that java.lang.Exception Registration with Push API failed, caused by port is unavailable. But when I unregister it successfully unregisters the user with the given arbitrary username and password. By the I use the port given in the RIM's email.

我不知道为什么会发生这种情况,感谢您的即时回复.谢谢.

I have no idea why this happens and I appreciate immediate response from you. Thank you.

推荐答案

首先要指出的是,RIM 示例推送应用程序极其复杂.您所指的用户名和密码用于针对在您的 tomcat 服务器上运行的 sample pushinitiator Web 应用程序进行身份验证.你在那里放什么并不重要,它们不用于身份验证.我只能假设添加它们是为了向您展示您可以向基于 Web 的服务发送用户名和密码.

The first thing to point out is that the RIM sample push application is ridiculously overcomplicated. The username and password you are referring to are used to authenticate against the sample push initiator web application which runs on your tomcat server. It doesn't matter what you put in there, they are not used for authentication. I can only assume they were added to show you that you can send a username and password to a web based service.

在您的 BlackBerry 应用程序中注册推送服务所需的唯一是:

The only things you need in your BlackBerry app to register for the push service are:

您收到的 端口不可用 消息可能是因为您使用的设备尚未针对 BlackBerry Internet Services (BIS) 进行配置.确保它的 SIM 卡具有有效的 BlackBerry 数据计划.

The port is unavailable message you're receiving is probably because the device you're using has not been provisioned for BlackBerry Internet Services (BIS). Make sure it has a SIM with an active BlackBerry data plan.

这篇关于无法在示例 BlackBerry 推送应用程序中注册的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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