我已经实现了一个 php 服务器,它向订阅了我的 Firebase 项目的特定主题的用户发送 Firebase 通知。
有效。
在 Firebase 的控制台中,可以设置通知的“过期时间”(从 1 分钟到 4 周)。
有没有办法在我的 php 服务器中也插入这种可能性?
谢谢
最佳答案
我认为您正在寻找 time_to_live
参数:
This parameter specifies how long (in seconds) the message should be kept in FCM storage if the device is offline. The maximum time to live supported is 4 weeks, and the default value is 4 weeks. For more information, see Setting the lifespan of a message.
关于php - 有没有办法在从 php 服务器发送的 Firebase 通知中实现 "expiration"时间?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42177111/