gpt4 book ai didi

php - 有没有办法在从 php 服务器发送的 Firebase 通知中实现 "expiration"时间?

转载 作者:塔克拉玛干 更新时间:2023-11-02 20:42:34 24 4
gpt4 key购买 nike

我已经实现了一个 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/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com