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

Java Development

Reply
Highlighted
New Contributor
Posts: 8
Registered: ‎03-29-2011
My Device: 9800
My Carrier: Singtel

Push sometimes doesn't register correctly

 

Does anyone experience this?
I am registering for a push.  Sometimes, it works, sometiems it doesn't.  Is this a network issue on my service provider?
PushApplicationStatus pushApplicationStatus = PushApplicationRegistry.getStatus( pad );
byte pasStatus = pushApplicationStatus.getStatus();
if( pasStatus != PushApplicationStatus.STATUS_ACTIVE &&  pasStatus != PushApplicationStatus.STATUS_PENDING ) {
   System.out.println( "Scheduled registration with BPAS");
   PushApplicationRegistry.registerApplication( pad );    
}
else 
{
System.out.println( "Already registered" );
}
PushApplicationStatus pushApplicationStatus = PushApplicationRegistry.getStatus( pad );

 

Does anyone experience this?
I am registering for a push.  

 

Sometimes, it works, sometiems it doesn't.  Is this a network issue on my service provider?