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
selvaraman
Posts: 29
Registered: ‎09-07-2012
My Device: 9900
Accepted Solution

Push Message not receving after device reboot BB java

Hi All,

 

I have successfully integrated the BlackBerry push notification in my app from the below url http://supportforums.blackberry.com/t5/BlackBerry-Push-Development/Simplified-BIS-Push-client-sample.... Here am successfully able to get the push notification until device reboot, After device restarted i can't able to get the push notification.

 

Note: I had set the alternate entry point, checked the "Auto - run on startup" and my main method is like below

 if (args != null && args.length > 0 && args[0].equals("autostart")) {
    		 // auto start, wait for OS
            while (ApplicationManager.getApplicationManager().inStartup()) {
               try {
				Thread.sleep(10000);
			} catch (InterruptedException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
            }
            
            
            
            PushAgent agent = new PushAgent();
            agent.register();
			agent.enterEventDispatcher();
			
		} else {
		
						theApp = new MyApp();
			theApp.enterEventDispatcher();
			
		}        
            

untitled.JPGuntitled1.JPG

 

Is i have used anything wrong or i need to implement anyother?

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

Re: Push Message not receving after device reboot BB java

I would start by analyzing the device event logs to see if the app successfully starts up when the device does:

http://supportforums.blackberry.com/t5/Java-Development/Interpret-GC-messages-in-the-Event-Log/ta-p/...

 

From there you can start checking to make sure that all Push related functionality has started up as expected etc.

 

Garett
@garettBeuk
--
Goodbye everybody!
Please use plain text.
Contributor
selvaraman
Posts: 29
Registered: ‎09-07-2012
My Device: 9900

Re: Push Message not receving after device reboot BB java

[ Edited ]

Thankyou @gbeukeboom. Finally i got the solution from this link. http://rincethomas.blogspot.in/2012/07/push-notification-in-blackberry.html

Please use plain text.