不能在样本黑莓推送应用程序注册 [英] Cannot register in sample BlackBerry push application

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

问题描述

我开发一个BlackBerry应用程序中,我需要使用推送API。我已经与RIM注册,他们送我的评价服务的凭证。在我的黑莓设备,我安装的示例推送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的注册与推送API失败的消息,引起的任意用户名和密码的端口不可用。但是,当我注销它成功注销给定的任意用户名和密码的用户。由我用在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.

我不知道为什么发生这种情况,并从你,我AP preciate立即响应。谢谢你。

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

推荐答案

要指出的第一件事是,RIM样本推送应用程序是的可笑过于复杂的。用户名和密码你指的是被用来针对其运行Tomcat服务器上的样品推发起 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.

您在黑莓应用程序需要的推送服务注册的事情是:

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

  • Push Application ID (e.g. 2672-c870l6c924r1i298O4o33cc5391y0e75134)
  • Push Port (e.g. 31940)
  • BlackBerry Push Server URL (e.g. http://pushapi.eval.blackberry.com)

端口不可用,您收到消息很可能是因为您正在使用的设备尚未置备黑莓上网服务(BIS)。确保它有积极的黑莓手机数据计划中的SIM卡。

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.

这篇关于不能在样本黑莓推送应用程序注册的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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