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.