sending notification between Android devices

一笑奈何 提交于 2019-12-11 05:07:24

问题


I have App "A" in android device "A" and i have the App "A" in android device "B" . Is it possible for me to send the notifications between the devices through WIFI??

Thanks in advance


回答1:


There's a variety of ways to do this, but ultimately it all boils down to have an app running on the second device that receives some trigger to show a notification.

Some examples....

You can have an app with a open server socket on device b and then discover and connect to it to send a message that triggers a notification over TCP/IP. http://jmdns.sourceforge.net/ can help with discovery.

If they both have a network connection, you can build something on the App Engine to send a C2DM message to device B, and then upon receiving that message trigger a notification.



来源:https://stackoverflow.com/questions/6371670/sending-notification-between-android-devices

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!