Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

BlackBerry Push Development

Reply
Contributor
Posts: 30
Registered: ‎04-13-2013
My Device: blackberry bold
My Carrier: developer

HTTP Status 401 in push service

Hi 

I want to receive push notification from my server. But i am facing problem .

 

I Developed php Server application for BB push Notifcation

like this Url " http://stackoverflow.com/questions/7481122/push-notification-in-blackberry but its giving me the error


HTTP Status 401 - Invalid PushServiceId/Password in the Authorization HTTP header

type Status report

message Invalid PushServiceId/Password in the Authorization HTTP header

description This request requires HTTP authentication (Invalid PushServiceId/Password in the Authorization HTTP header).

Retired
Posts: 2,559
Registered: ‎10-16-2009
My Device: BlackBerry Z10
My Carrier: Bell

Re: HTTP Status 401 in push service

Did you sign up for a push account? That error means that invalid credentials were used.

 

Are you signed up for EVAL or PROD? Which URL are you trying to send your push message to?

Garett
@garettBeuk
--
Goodbye everybody!
Contributor
Posts: 30
Registered: ‎04-13-2013
My Device: blackberry bold
My Carrier: developer

Re: HTTP Status 401 in push service

Sir 

My device is registered for push service.I got the new credentials and its working fine.

In my server side code i am getting 1001 as response code and the push notification is not displayed on my device.

Highlighted
Retired
Posts: 2,559
Registered: ‎10-16-2009
My Device: BlackBerry Z10
My Carrier: Bell

Re: HTTP Status 401 in push service

That means either an issue with how you are addressing the push (server) or how the client is set up.

 

Could you provide some details? 

 

What payload is the server sending?

What device is the client running on (BlackBerry Z10 etc)?

What language is the app coded using? Did you take the code from a sample?

Garett
@garettBeuk
--
Goodbye everybody!