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
Highlighted
Developer
Posts: 147
Registered: ‎05-31-2013
My Device: BlackBerry Z10 Limited Edition
My Carrier: Bonbon
Accepted Solution

Push service complete setup

Hi,

I got the credentials approved, service is ACTIVE on my server, and PushCollector from Cascades samples app repository is configured properly and ready.

 

However, I wanted to test out and send a push to a subscriber and this is what I get:

 Please correct the following error(s):

Unable to parse the response from this command because the content-type header field returned was not the expected: 'application/xml'. This may occur if the URL being accessed is wrong or the service at the URL is not available. Actual content-type returned was: text/html. Please check application log files for more information. 

 

What URL? Docs are very vague, please can someone clarify. I'd like to make a clean detail exampl eof how to setup everything to enable push notification service.

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

Re: Push service complete setup

Hi there,

 

Could you provide some more details on what steps you are taking to reproduce the below issue?

What are you using for your server-side? What URL are you sending the push payload to?

Garett
@garettBeuk
--
Goodbye everybody!
Retired
Posts: 2,559
Registered: ‎10-16-2009
My Device: BlackBerry Z10
My Carrier: Bell

Re: Push service complete setup

Sorry! I seem to keep splicing the message when I move it. I'm going to delete the other threads.

 

Here's my original, second, reply:

Ok, we'll get everything straightened around here, no worries :smileyhappy:

 

First thing: The URL for the PPG is correct but you need to append the suffix for the service:

https://cpXXXX.pushapi.eval.blackberry.com/mss/PD_pushRequest

 

Try that out and see if it fixes the error, if not let me know what happens.

Garett
@garettBeuk
--
Goodbye everybody!
Developer
Posts: 147
Registered: ‎05-31-2013
My Device: BlackBerry Z10 Limited Edition
My Carrier: Bonbon

Re: Push service complete setup

I'm sorry, where exactly should I use that suffix?

Server side has no such input, at least I don't see it where I can modifiy the request in High Level Sample installed with BPSS.

 

On client side I tried adding that suffix but the same error is still the same.

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

Re: Push service complete setup

You said you were sending messages to "https://cpXXXX.pushapi.eval.blackberry.com", which needs to be changed as mentioned in my last message. Or are you not specifying any URL yourself?

 

The above change is done in the server side only.

Garett
@garettBeuk
--
Goodbye everybody!
Developer
Posts: 147
Registered: ‎05-31-2013
My Device: BlackBerry Z10 Limited Edition
My Carrier: Bonbon

Re: Push service complete setup

I was asked to enter PPG url on BPSS install and never asked again.

 

Is there a way to modify it or do I have to reinstall BPSS to supply it with correct url?

 

BTW why did Eval Credentials email supply an incorrect PPG URL then?

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

Re: Push service complete setup

I believe there may be an XML file where you can update this value...I normally just use a standard HTTPS POST app opposed to the entire SDK though. 

 

The email includes the correct PPG URL, but various calls use different suffixes.

Garett
@garettBeuk
--
Goodbye everybody!
Developer
Posts: 147
Registered: ‎05-31-2013
My Device: BlackBerry Z10 Limited Edition
My Carrier: Bonbon

Re: Push service complete setup

Just tried it with Low level sample where correct URL is used:

 

http://cpXXXX.pushapi.eval.blackberry.com/mss/PD_pushRequest

 

but the error remains the same.

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

Re: Push service complete setup

Needs to be HTTPS. 

 

Can you post the code snippet being used as well?

Garett
@garettBeuk
--
Goodbye everybody!
Developer
Posts: 147
Registered: ‎05-31-2013
My Device: BlackBerry Z10 Limited Edition
My Carrier: Bonbon

Re: Push service complete setup

That URL I pasted directly from Low Level Sample provided by BPSS Linux binary file.

I used both unmodified High Level and Low Level samples and they still fail.

 

Even after I modifed all URLs to HTTPS in ../WEB-INF/classes/PushSDK.properties

 

Not to mention that PPG URL is not acceptable in PushCollector Cascades sample when it's in HTTPS. it explicitly demands a HTTP.

 

Besides,

can you provide more detail in Private Message about exact POS/GET calls including their parameters. I can handle raw requests, I even prefer them but I cannot find any docs on exact request.