在FCM文档中,消息ttl
和time_to_live
中有两个属性。
https://firebase.google.com/docs/cloud-messaging/concept-options.html#ttl https://firebase.google.com/docs/cloud-messaging/concept-options.html#lifetime
它看起来像是同一功能。
我要设置消息的寿命。
我应该使用哪个属性?
在FCM文档中,消息ttl
和time_to_live
中有两个属性。
https://firebase.google.com/docs/cloud-messaging/concept-options.html#ttl https://firebase.google.com/docs/cloud-messaging/concept-options.html#lifetime
它看起来像是同一功能。
我要设置消息的寿命。
我应该使用哪个属性?
它们用于相同目的-设置有效载荷的寿命。
区别在于ttl
is the key for FCM v1而time_to_live
is for FCM Legacy。