07-27-2011 06:04 AM
Hi Every body,
I was succesfully implemented both client side and server side code for push notifications using forums help.
Now i am facing one problem, that is how to show push message as an alert when app is in closed state.
Can anybody help me it's very urgent.
Thanks in advance
Solved! Go to Solution.
07-27-2011 07:06 AM
You need to look at MessageListDemo sample to see how to handle it in a BB way
07-27-2011 11:47 AM
07-28-2011 08:23 PM
07-29-2011 03:24 AM
Thank you very much for reply,
I am using OS 5.0 or greater, Here my client requirement is, he want an alert while message received.
Now my questions are:
1. Can I listen the pushmessages coming from the server with out running My App in foreground or background.
2. How can I put indication on indicator when the message is received.
3 Is the indicator able to listen the push messages?.
Sorry for asking like this, but these are questions running in my mind.
looking forward for your reply.
07-29-2011 03:33 AM
08-01-2011 12:50 AM - last edited on 08-01-2011 03:43 AM
@pradeep_ch
okay i will try to answer your questions
1. according to http://us.blackberry.com/developers/javaappdev/Bla
2. in push API when the listener receive data from the PPG server it will trigger the onMessage() function which is must be overridden in implementing PushApplication class
3. indicator can be registered, count up, count down and unregistered in onMessage() function or when your message reads via application
the last one
use multi threading in your onMessge() function (you can combine with Application.getEventLock also as your synchronized lock)
hope that answers will help....
08-01-2011 11:58 AM - last edited on 08-01-2011 11:58 AM
Thanks for your patience,
And now i am doing my application in a different way, i am creating a thread which listen the messages and by creating alternative entry point i starting this thread only instead of entire application.
This works fine,
Once again thanks for reply.
01-21-2012 03:09 AM
Hi,
Can you please explain how u have implemented push notification in blackberry?
I want to implement this as following:
Push notification will be received by bb device and in response bb device will send some request to the server.
Thanks.
Regards,
Shubhangi