2012-04-03 75 views
0

我已經安裝了Blackberry推送SDK,並且我將Tomcat放在服務器上用真實IP。我使用了簡單的sample-push-initiator,並將其註冊到設備中併成功註冊。黑莓push sdk服務

的問題:當我嘗試從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 

是什麼原因導致這個錯誤,我該如何解決呢?

回答

1

您必須將您的用戶名和密碼(來自Blackberry註冊)與HTTP Auth基本方法一起傳遞。

例如:https://username:[email protected]/mss/PD_pushRequest