[英]How to send notification to app users in android?
I have an application that contains some user data, name,location and number. 我有一个包含一些用户数据,名称,位置和编号的应用程序。 I want to send this data to all users of this app as a notification. 我想将此数据作为通知发送给该应用程序的所有用户。 These data are stored in SQLite database. 这些数据存储在SQLite数据库中。 How can I do this? 我怎样才能做到这一点? Can anyone help me to do this with some examples? 有人可以帮我做些例子吗?
Use the concept of Broadcast Receiver,Notification Manager,Alarm Manager and pending intenet for this. 为此使用广播接收器,通知管理器,警报管理器和挂起的互联网的概念。 you can get various examples from google very easily regarding this topic. 您可以很容易地从Google获得有关该主题的各种示例。 Fetch your data from your database and put it in the Broadcast Receiver class. 从数据库中获取数据,并将其放入Broadcast Receiver类中。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.