使用Firebase云消息传递计划推送通知 [英] Schedule a push notification with Firebase Cloud Messaging

查看:157
本文介绍了使用Firebase云消息传递计划推送通知的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在我正在开发的应用中集成推送通知。我选择使用Firebase云消息传递(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文档时,我似乎无法找到这个选项。

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控制台中完成(如您所知)或在您自己的App Server中执行延迟直到该计划。

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云消息传递计划推送通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆