I'm developing a multiplayer game and I'm wondering how can I received a message from server, though the app doesn't run at that time.
For example, a player P1 wants to invite player P2 to play a game. On P2 phone, the game doesn't show on the screen currently. So how I can make the P2 Phone notify with P1's invitation?
Thanks all.
Asked
Active
Viewed 942 times
0

user795365
- 11
- 1
2 Answers
3
Pham All you are looking for is Push Notifications
Here is a complete StackOverFlowpost "achieving Push Notifications in Android"
0
This looks like a task for cloud-to-device messaging! https://stackoverflow.com/search?q=c2dm
-
Thanks Sparky. This's exactly what I was looking for. – user795365 Mar 22 '11 at 01:48
-
Thanks 100rabh, I found another solution for this: IBM's MQTT. Besides the Google's C2DM, this is really what I need. Thanks for all of your help. – user795365 Mar 22 '11 at 01:52