使用 Firebase Cloud Messaging 安排推送通知 [英] Schedule a push notification with Firebase Cloud Messaging
问题描述
我正在开发的应用中集成推送通知.我选择使用 Firebase Cloud Messaging (FCM) 来支持 Android 和 iOS.
I'm integrating push notifications in an app I'm developing. I have chosen to use Firebase Cloud Messaging (FCM) to support both Android and iOS.
当使用控制台发送推送消息时,我看到有一个选项可以延迟推送通知的实际发送.但是,在检查 HTTP docs 时,我似乎找不到这个选项.
When using the console to send a push message I see there is an option to delay the actual sending of the push notification. However when checking the HTTP docs I can't seem to find this option.
如何安排通知以便稍后使用 FCM 和 HTTP API 发送?
How would I schedule a notification so it is send at a later time using FCM and the HTTP API?
推荐答案
遗憾的是,目前还没有 API 甚至参数可用于安排通知.
Unfortunately, as of the moment, there is no API or even a parameter that you can use in order to schedule a notification.
它只能在 Firebase 控制台中(正如您已经知道的那样)或在您自己的应用服务器中实施延迟,直到计划.
It can only be done either (as you already know) in the Firebase Console or implementing a delay until the schedule in your own App Server.
这篇关于使用 Firebase Cloud Messaging 安排推送通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!