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
New Developer
jeffm
Posts: 26
Registered: ‎11-20-2008
My Device: Not Specified

Cannot Register BlackBerry Application

Hello. I am trying to register my app to use the testing push notification service. I already have my keys and server set up. However, I cannot get the application itself to register.

 

I keep receiving this error PushApplicationStatus on the callback:

 

STATUS_FAILED

REASON_NETWORK_ERROR

java.lang.IllegalStateException: no application instance

 

However, despite the message we definitely have an application instance. Below is the relevant code snippet.

 

 

PushApplicationDescriptor pad = new PushApplicationDescriptor("sercretKey", 20555, "https://pushapi.eval.blackberry.com/",
				PushApplicationDescriptor.SERVER_TYPE_BPAS, ApplicationDescriptor.currentApplicationDescriptor());
		
		
		PushApplicationStatus status = PushApplicationRegistry.getStatus(pad);

		printStatus(status);

		if (status.getStatus() != PushApplicationStatus.STATUS_ACTIVE && status.getStatus() != PushApplicationStatus.STATUS_PENDING)
		{
			
			Log.debug("Registering push");
			
			PushApplicationRegistry.registerApplication(pad);
		}

 If anyone could point me in the right direction I would appreciate it.

 

Please use plain text.
New Developer
jeffm
Posts: 26
Registered: ‎11-20-2008
My Device: Not Specified

Re: Cannot Register BlackBerry Application

Ok... well can anyone post the code they have used to successfully register an app with the push service?

Please use plain text.
Developer
yog123
Posts: 51
Registered: ‎07-15-2008
My Device: Not Specified

Re: Cannot Register BlackBerry Application

hi,

 

i also need that ...

 

it will be great if someone actually post code  or steps....

Please use plain text.
Super Contributor
pg1181
Posts: 398
Registered: ‎01-12-2011
My Device: Q10
My Carrier: Fido

Re: Cannot Register BlackBerry Application

I would also like to see that.

Please use plain text.
Visitor
jkransen
Posts: 1
Registered: ‎06-22-2011
My Device: 9360
My Carrier: KPN

Re: Cannot Register BlackBerry Application

+1 Please help us out!

Please use plain text.
New Contributor
vivekmago
Posts: 7
Registered: ‎06-09-2011
My Device: Torch
My Carrier: AT&T

Re: Cannot Register BlackBerry Application

Same here... seems like the endpoint is also down from quite a few days and I reported earlier too.. looks like RIM folks are sleeping on the wheel... You dont get fans by having the service down for multiple ways... Can someone pls respond from BB team

Please use plain text.
Developer
massimo_olive
Posts: 235
Registered: ‎11-08-2010
My Device: Not Specified

Re: Cannot Register BlackBerry Application

I followed the PushLib50.java sample code that ships with the Push SDK and have been able to successfully register my device. The BlackBerry api.push package takes care of the registration for you.

Please use plain text.
New Contributor
vivekmago
Posts: 7
Registered: ‎06-09-2011
My Device: Torch
My Carrier: AT&T

Re: Cannot Register BlackBerry Application

Still cannot make make the XHR register example work... any one tried the XHR / javascript registration and succeded.. if so can you please share some code..

 

Thanks

Please use plain text.