java - 向运行应用程序的每个人发送通知,Android

标签 java android notifications

设置: 我有一个有多个用户的系统。每个用户都会将我的应用程序下载到他们的 Android 手机上并使用它。我想要的是当任何用户执行特定操作时(我的应用程序中有两个),我想在所有其他用户手机中弹出通知。

简单的分解是这样的: 启动应用程序 --> 导航到执行操作的部分 --> 执行操作 --> 将操作存储到数据库 --> 通知所有用户 --> 在所有手机上弹出相同的通知。

我该如何解决这个问题?任何人都可以提出想法或链接,因为我什至不知道如何处理这个问题。

最佳答案

如果您希望向所有用户发送通知,即使所有用户都没有积极使用该应用程序,那么 Puch Notification 也是一个不错的方法。

Push notifications let your application notify a user of new messages or events even when the user is not actively using your application. On Android devices, when a device receives a push notification, your application's icon and a message appear in the status bar. When the user taps the notification, they are sent to your application. Notifications can be broadcast to all users, such as for a marketing campaign, or sent to just a subset of users, to give personalized information.

看看Android Google Cloud Messaging

我还找到了XMPP post 描述的一个很好的解决方案.

你会找到一些好的解决方案herehere

关于java - 向运行应用程序的每个人发送通知,Android,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14035046/

相关文章:

android - NFC 强制重新扫描

android - 如何在不点击android中的通知的情况下清除所有通知

java - 执行特定方法时发出通知

java - 您如何链接到 javadoc 中的_包描述_(不是类)?

Java - 执行控制台

android - 如何在 Android 的 GLSurfaceView 上播放视频?

android - 传递并取回每个操作的唯一事件 ID

Android - 构建通知,TaskStackBuilder.addParentStack 不起作用

java - SwingBuilder : scrollPane

java - 无需修改基类即可更改行为