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
LuisDev
Posts: 12
Registered: ‎09-30-2013
My Device: 9900
My Carrier: Vodafone

Re: sending low-level push error 2001

ok, after all the changes. my settings on the app are:

PORT YYYY

App ID ( XXXX-XXXXXXXXXX)

BPS Server URL: https://cpXXXX.pushapi.eval.blackberry.com
Push Initiator Application URL: https://cpXXXX.pushapi.eval.blackberry.com

 

but the problem is still the same. am i missing anything? 

when i try to register i got this error "IOException...  subscribe failed. make sure that Content Provider URL is accessible"

Please use plain text.
BlackBerry Development Advisor (Retired)
gbeukeboom
Posts: 2,559
Registered: ‎10-16-2009
My Device: BlackBerry Z10
My Carrier: Bell

Re: sending low-level push error 2001

The client should be using HTTP, not HTTPS.

 

Please be clear which side you are testing (server or client) and what action is being done to receive the response.

Garett
@garettBeuk
--
Goodbye everybody!
Please use plain text.
Contributor
LuisDev
Posts: 12
Registered: ‎09-30-2013
My Device: 9900
My Carrier: Vodafone

Re: sending low-level push error 2001

Ok, lets start from the beginning.

I am working with localhost low-level-sample and high-level-sample.

1. On high-level-sample i created the application with the information received on the email.

2. Setup the configuration of the pushdemo app on blackberry, with the data of the last post.

3. Try to make a push on low-level-sample to the app created on high-level. 

 

The Status Query give me this error: 

2001 | The request was refused (i.e. bad or missing username/password, etc.). 

 
If i do not get this error, shoudnt i be receaving the push on the blackberry or am i thinking/understanding this wrong?

Please use plain text.
BlackBerry Development Advisor (Retired)
gbeukeboom
Posts: 2,559
Registered: ‎10-16-2009
My Device: BlackBerry Z10
My Carrier: Bell

Re: sending low-level push error 2001

On the server you should receive a 1001 response to denote a successful push.

Garett
@garettBeuk
--
Goodbye everybody!
Please use plain text.
Contributor
LuisDev
Posts: 12
Registered: ‎09-30-2013
My Device: 9900
My Carrier: Vodafone

Re: sending low-level push error 2001

when i send the push i got the 1001 error code and this description

"The request has been accepted for processing, but the final outcome is not yet known. This code is used in response to a push submission to indicate that the message has been received by the PPG and seems to be well formed and valid."

 

but when i check the Status Query it gives me the error 2001 that i told before. can you see what i am doing wrong?

 

do i need to register on the cellphone app? 

because when do, i receive this exception "IOException...  subscribe failed. make sure that Content Provider URL is accessible"

Please use plain text.
BlackBerry Development Advisor (Retired)
gbeukeboom
Posts: 2,559
Registered: ‎10-16-2009
My Device: BlackBerry Z10
My Carrier: Bell

Re: sending low-level push error 2001

You are pushing through BIS, correct? Status query is only open to Push Plus accounts, so you likely do not have access to perform the status query.

 

On the client side, what URL are you using? What command returns the IOException

Garett
@garettBeuk
--
Goodbye everybody!
Please use plain text.
Contributor
LuisDev
Posts: 12
Registered: ‎09-30-2013
My Device: 9900
My Carrier: Vodafone

Re: sending low-level push error 2001

on the client side (bb app), my settings are these:

BPS Server URL: https://cpXXXX.pushapi.eval.blackberry.com
Push Initiator Application URL: https://cpXXXX.pushapi.eval.blackberry.com

 

The command of the IOException is "Network operation [Subscribe] failed. Make sure that Content Provider URL is accessible"

Please use plain text.
BlackBerry Development Advisor (Retired)
gbeukeboom
Posts: 2,559
Registered: ‎10-16-2009
My Device: BlackBerry Z10
My Carrier: Bell

Re: sending low-level push error 2001

Hi Luis,

 

As was mentioned here, the client side should be using HTTP only.

 

As well the client only needs the URL to the BPS Server. The Push Initiator URL would be the URL to the server you host, if it requires registration.

Garett
@garettBeuk
--
Goodbye everybody!
Please use plain text.
Contributor
LuisDev
Posts: 12
Registered: ‎09-30-2013
My Device: 9900
My Carrier: Vodafone

Re: sending low-level push error 2001

Ok, my settings on app now are: 

PORT: YYYYY

App ID: ( XXXX-XXXXXXXXXX)

BPS Server URL: http://cpXXXX.pushapi.eval.blackberry.com

The Push Initiator URL: 

 

when i do the push on low-level-sample i receive a 1001 but i am still not receiving any push on the cellphone.

 

am i wrong creating the app ? i've created it wih the type Public Push 

Please use plain text.
BlackBerry Development Advisor (Retired)
gbeukeboom
Posts: 2,559
Registered: ‎10-16-2009
My Device: BlackBerry Z10
My Carrier: Bell

Re: sending low-level push error 2001

Does the channel and session get created successfully on the client?

Garett
@garettBeuk
--
Goodbye everybody!
Please use plain text.