Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/blackberry/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/qt/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
无法在模拟器上测试BlackBerry PushService SDK_Blackberry_Push Notification_Blackberry Simulator_Blackberry Push - Fatal编程技术网

无法在模拟器上测试BlackBerry PushService SDK

无法在模拟器上测试BlackBerry PushService SDK,blackberry,push-notification,blackberry-simulator,blackberry-push,Blackberry,Push Notification,Blackberry Simulator,Blackberry Push,我是Java开发者,但最近我得到了一些与BlackBerry推送服务实现相关的项目。我的目标是为推送启动器(即内容提供商)编写服务器端实现。但为了测试这一点,我还需要使用一些支持推送的示例应用程序 我已经阅读了BB开发者指南,并完成了以下步骤: 注册BB推送服务评估API并收到确认邮件,其中包含所有必需的详细信息,如:appId、pwd、BIS的PPG Url、端口号等 安装了适用于低级推送模仿者(即web应用程序内容提供商)的BB推送安装程序和支持推送的示例应用程序(可在BB推送服务开发人员指

我是Java开发者,但最近我得到了一些与BlackBerry推送服务实现相关的项目。我的目标是为推送启动器(即内容提供商)编写服务器端实现。但为了测试这一点,我还需要使用一些支持推送的示例应用程序

我已经阅读了BB开发者指南,并完成了以下步骤:

  • 注册BB推送服务评估API并收到确认邮件,其中包含所有必需的详细信息,如:appId、pwd、BIS的PPG Url、端口号等

  • 安装了适用于低级推送模仿者(即web应用程序内容提供商)的BB推送安装程序和支持推送的示例应用程序(可在BB推送服务开发人员指南上找到PushDemo_示例)

  • 现在我正在模拟器上测试这个支持推送的应用程序,并尝试注册。但由于示例应用程序尝试在注册BB推送服务器之前先向推送启动器(CP)订阅。我已经注释了下面的代码,因为我不想要订阅部分。 RegisterCommand类处理订阅和注册

    protected void execute() throws Exception {
            // first we register with Content Provider
            Logger.log("Reached RegidterCommand execute() method .. but eacapingCMD_SUBSCRIBE");
            //ContentProviderProtocol.performCommand( ContentProviderProtocol.CMD_SUBSCRIBE, username, password, isEnterprise, tx ); // commented
            // if the registration is successful we register with BPS
            Logger.log("Now Going to register with PPG");
            BpasProtocol bpasProtocol = PushLibFactory.getBpasProtocol();
            bpasProtocol.register( tx, isEnterprise );
            // update the registered state
            PersistentStorage.setRegistered( true );
        }
    
    但在使用正确的appId、端口号和BPS服务器URL、虚拟推送启动器应用程序URL配置应用程序后,当我单击register时,它显示一些IOException:

    Command 'register' failed with error: java.io.IOException: could not find a service book entry for IPPP.
    
    在simulator上的应用程序日志中,我可以看到它正在尝试打开BB Push eval url,并在url后面附加一些参数,如下所示:

    Opening URL: http://cpXXXX.pushapi.eval.blackberry.com/mss/PD_subReg?serviceid=XXXX-sxxxxxxxxxxxxxxxxxxxxxxxxxxxx&osversion=7.1.0.318&model=9900&deviceside=false&ConectionType=mds-public
    
    在这里,我只是想注册我的模拟器与BB推服务器。不可能在模拟器上测试推送服务吗?还是我做错了什么

    还有一个疑问是,示例push应用程序的PushLib50类的register()方法是如何在eval URL之后附加额外参数的


    请帮忙。指出我在实现推送服务时是否有任何错误。

    您无法在模拟器中测试推送通知。你需要真正的设备。 提及


    黑莓推送服务是黑莓智能手机实时、常开体验的重要组成部分。它为向用户发送信息提供了一种高效可靠的方式。它还允许应用程序在后台处理信息,并在需要用户注意时通知用户

    您不能在模拟器中测试推送通知。你们需要真正的设备。嗨,Signare,是的,我们不能在emulator上测试推送通知,因为所有emulator都有相同的PIN码和其他原因。谢谢你帮助我。现在我已经在设备上安装了应用程序,并且能够获得推送消息。但为了测试/实现整个推送服务,我使用了《BB开发者指南》中提供的示例推送演示应用程序。以及用于低级推送启动器的推送服务SDK。