[英]How to create Firebase Cloud messaging recurring notifications without console?
From FCM console I can not set up much more than 10 recurring notifications.在 FCM 控制台中,我无法设置超过 10 个重复通知。
You can have up to 10 unique recurring notifications active per project
每个项目最多可以激活 10 个唯一的定期通知
I want to aim targeting audiences, user properties, last user engagement also.我还想瞄准受众、用户属性和最后的用户参与度。 For example, you can set up a recurring notification that sends a push notification to a user who has been inactive for 2 days.
例如,您可以设置定期通知,向 2 天不活动的用户发送推送通知。 From FCM console it is possible but I want to set it up manually since FCM console does not allow me to create recurring notifications much more than 10.
从 FCM 控制台是可能的,但我想手动设置它,因为 FCM 控制台不允许我创建超过 10 个的重复通知。
There is no API to create recurring notifications in Firebase Cloud Messaging.没有 API 在 Firebase Cloud Messaging 中创建定期通知。 Since you already tagged your question with
google-cloud-functions
, you seem to know that you can create scheduled tasks with that.由于您已经使用
google-cloud-functions
标记了您的问题,您似乎知道您可以使用它来创建计划任务。
To create a scheduled, recurring notification you can:要创建计划的重复通知,您可以:
From this documentation and the examples in it, you should be able to get the use-case working.从该文档及其中的示例,您应该能够使用例正常工作。 If not, post another question with the minimal, complete code that any of us can run to reproduce where you got stuck .
如果没有,请使用我们任何人都可以运行的最少的完整代码发布另一个问题,以重现您遇到的问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.