我安装了Blackberry push SDK,并将Tomcat放入服务器中,使用真正的IP。我使用了简单的sample-push-initiator,并将其注册到设备中并成功注册。
问题:当我尝试使用sample-push-initiator从Tomcat服务器发送推送通知时出现错误
ERROR: Unauthorized to communicate with the PPG at URL:
https://pushapi.eval.blackberry.com/mss/PD_pushRequest with
username: xxxxxxxx and and password: xxxxxxxxx
导致此错误的原因以及解决方法如何?
答案 0 :(得分:1)
您必须使用HTTP Auth Basic Method传递您的用户名和密码(来自黑莓注册)。
即:https://username:password@pushapi.eval.blackberry.com/mss/PD_pushRequest