发送Android设备之间的通知 [英] sending notification between Android devices

查看:148
本文介绍了发送Android设备之间的通知的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有应用程序A,在Android设备A和我有应用程序A,在Android设备B。是否有可能对我来说,通过WIFI发送设备之间的通知??

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??

在此先感谢

推荐答案

有多种方法可以做到这一点,但最终这一切都归结到有接收一些触发,显示通知的第二设备上运行的应用程序。

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.

一些例子....

您可以对设备B的开放式服务器套接字的应用程序,然后发现并连接到它发送触发通过TCP / IP的通知的消息。 http://jmdns.sourceforge.net/ 可以发现帮助。

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.

如果他们都有一个网络连接,你可以建立在App Engine上的东西,然后在接收到的消息触发通知发送C2DM消息到设备B

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.

这篇关于发送Android设备之间的通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆