开发者

Android Listener for remote application message

开发者 https://www.devze.com 2023-02-18 06:30 出处:网络
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.

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 m开发者_如何学编程ake the P2 Phone notify with P1's invitation?

Thanks all.


Pham All you are looking for is Push Notifications

Here is a complete StackOverFlowpost "achieving Push Notifications in Android"


This looks like a task for cloud-to-device messaging! https://stackoverflow.com/search?q=c2dm

0

精彩评论

暂无评论...
验证码 换一张
取 消