Thank you for visiting the BlackBerry Support Community Forums.
BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)
BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.
"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."
- Kevin Michaluk, Founder, CrackBerry.com
Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.
05-06-2013 06:42 AM
Is it possible that, even if i close my app, which is Push Service enabled, and the device still recieve the notification, and it is not even running in the background..
05-07-2013 08:53 AM
Yes, if a push comes in, and the application is closed (i.e. not running) then it will launch the application to the background.
For BlackBerry 10, you would have to "register to launch" or call launchApplicationOnPush (for WebWorks) to see this behaviour.
05-07-2013 01:45 PM
There's nothing off the top of my head that I can think of that would be preventing it.
Are you coding in Java?
You could check out this guide to help you figure out what's going on:
05-08-2013 12:49 AM
Yes, i am coding in Java, and at our organization here, we target OS 4.7+, so right now i am working for 4.7, do you think that could be the issue?
In the mean time i will look into the link that you mentioned
05-09-2013 05:38 AM - edited 05-09-2013 05:40 AM
I will tell you what i did
I created a non-ui app which listens to the notifications sent from the server, and it runs in the background, and displays the notifications globally, which frees the main application, and on the click on the notification, the main app is launched, which allows the device to b free on some RAM space as the the heavy(main) app is not running, only the non ui app is running which takes very less memory space.This also save a lot of trouble, as implementing push notification in other apps will also be simplified.The non-ui app automatically gets installed in the device along with the main app.
Just tell me that is this approch correct or is there any other better option?
05-10-2013 10:00 AM
The approach we generally recommend is to create a push-enabled application complete with UI.
When a push comes in, process it, create your notification (if you need to) and then exit your application.
This saves device resources and there is no permanent application running in the background.