简体   繁体   English

如何向 android App 发送自动 FCM 通知

[英]How to send automated FCM Notification to android App

Iam Building an Android App that can recive FCM notification from Cloud Messaging Console based on Topics(Which i have to do manually).Is there a Way to automate this task?我正在构建一个 Android 应用程序,它可以根据主题从云消息传递控制台接收 FCM 通知(我必须手动完成)。有没有办法自动化这个任务?

Android is just receiving data, if you want some automation and regular sending you have to implement that on some server side. Android 只是接收数据,如果你想要一些自动化和定期发送,你必须在某些服务器端实现它。 check out Firebase DOC for more查看Firebase 文档了解更多信息

if you don't have server-side, only app and above console then you don't have an option for automating push sending.如果您没有服务器端,只有应用程序和上面的控制台,那么您就没有自动推送发送的选项。 but you can show new Notification in some intervals on app-side using scheduled background Service (using JobIntentService , AlarmManager , WorkManager etc.), in which you can also do some networking/database check and so on但是您可以使用预定的后台Service (使用JobIntentServiceAlarmManagerWorkManager等)在应用程序端以某些间隔显示新Notification ,您还可以在其中进行一些网络/数据库检查等

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM