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

Web and WebWorks Development

Reply
Contributor
Posts: 10
Registered: ‎10-04-2012
My Device: 8520
My Carrier: Airtel
Accepted Solution

Blackberry Production Push service returns "rejected by server" on client application status 2

Dear All,

I am using Blackberry PPG push to implement push enabled application, When I try my application with EVAL credentials, it works fine, get resgitered and receives push notifications.But when I edit credentials from Blackberrt Production service, I get registration response 2.  I can see my applicaion active on CP Admin portal.

Here are credentials I am using for production 

 

ar port = 3**19;
var BBserverUrl = "http://cp**2.pushapi.na.blackberry.com"; //listen-to URL
var appId = "**2-82aB8R8466e6i8r0M83582e2i64862aa29k1"; //unique app-id, provided by RIM
var max = 100; //max queue size

var wakeUpPage = "index.html"; //if the app is closed and push comes in, wake up here

 

blackberry.push.openBISPushListener(ops, onPush, onRegister, onSimChange);

 

Please help me getting it worked. 

 

thanks in adnvance.

Developer
Posts: 78
Registered: ‎01-14-2013
My Device: Games
My Carrier: Not yet

Re: Blackberry Production Push service returns "rejected by server" on client application status 2

Dear friend,

I can help you run the example, base on this example, you write what you want.

Please find out: "BB10-WebWorks-Samples-master ---> pushCapture".

Please get it, build and run on your device. We shall continue later (by this room, and step by step.)

Best regards,

Dennis Ritchie.

Contributor
Posts: 10
Registered: ‎10-04-2012
My Device: 8520
My Carrier: Airtel

Re: Blackberry Production Push service returns "rejected by server" on client application status 2

Thanks Dennis, 

I am using BB7 and lower versions. Will BB10 help work there?

Developer
Posts: 78
Registered: ‎01-14-2013
My Device: Games
My Carrier: Not yet

Re: Blackberry Production Push service returns "rejected by server" on client application status 2

[ Edited ]

Dear friend,

I used BB10, so I just talk about BB10.

Now: Config server side. Please my attached file (Server.docx).

 

  1. Server:
    1. Install SDK for server:

-          I used SDK for Windows: http://developer.blackberry.com/native/downloads/fetch/bpss-1.2.0.29.exe . Install SDK.

-          Start SDK. See illustrated image:

 Capture.PNG

-          Try to https://localhost:8443/low-level-sample .

  1. Configure server for low level sample:

-          Go to installed directory of SDK, search *PushSDK.properties* for low level set

public.ppg.address=https://cp{CPID}.pushapi.eval.blackberry.com/mss/PD_pushRequest

 

Example: public.ppg.address=https://cp1235.pushapi.eval.blackberry.com/mss/PD_pushRequest

 

CPID is got from email, that had been sent by BlackBerryPushServices@blackberry.com :

 Capture00.PNG

-          Stop SDK. Start SDK.

 

 

 

Contributor
Posts: 10
Registered: ‎10-04-2012
My Device: 8520
My Carrier: Airtel

Re: Blackberry Production Push service returns "rejected by server" on client application status 2

I have already used EVAL crdentials and it is working fine.

I am using BB7 OS and lower, when I moved service to Production it stopped working.

 

Developer
Posts: 78
Registered: ‎01-14-2013
My Device: Games
My Carrier: Not yet

Re: Blackberry Production Push service returns "rejected by server" on client application status 2

Dear friend,

I just talk about BB10, because some APIs( Javascript, are not same.)

Please come here to get code
:

https://developer.blackberry.com/html5/apis/blackberry.push.pushservice.html#.create

 

Best regards,

Dennis

Contributor
Posts: 10
Registered: ‎10-04-2012
My Device: 8520
My Carrier: Airtel

Re: Blackberry Production Push service returns "rejected by server" on client application status 2

Thaks Dennis for your help, but as I am usin SDK lower than 7, any way it will help me in on 10 thanks. 

 

Contributor
Posts: 10
Registered: ‎10-04-2012
My Device: 8520
My Carrier: Airtel

Re: Blackberry Production Push service returns "rejected by server" on client application status 2

Can any one help me on SDK 7 and lower? It was working fine on EVAL but not working with Production

Developer
Posts: 78
Registered: ‎01-14-2013
My Device: Games
My Carrier: Not yet

Re: Blackberry Production Push service returns "rejected by server" on client application status 2

Dear friend,

I am working on BB10, so lower version , I don't know. So sorry.

Best regards,

Dennis.

Developer
Posts: 78
Registered: ‎01-14-2013
My Device: Games
My Carrier: Not yet

Re: Blackberry Production Push service returns "rejected by server" on client application status 2

Dear friends,
I think you should version, and apply suitable APIs.
Best regards,
Dennis.