设置: 我有一个有多个用户的系统。每个用户都会将我的应用程序下载到他们的 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.
关于java - 向运行应用程序的每个人发送通知,Android,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14035046/