用于Android推送的FCM消息中的`ttl`和`time_to_live`属性之间有什么区别?

在FCM文档中,消息ttltime_to_live中有两个属性。

https://firebase.google.com/docs/cloud-messaging/concept-options.html#ttl https://firebase.google.com/docs/cloud-messaging/concept-options.html#lifetime

它看起来像是同一功能。

我要设置消息的寿命。

我应该使用哪个属性?

liyaozong 回答:用于Android推送的FCM消息中的`ttl`和`time_to_live`属性之间有什么区别?

它们用于相同目的-设置有效载荷的寿命。

区别在于ttl is the key for FCM v1time_to_live is for FCM Legacy

本文链接:https://www.f2er.com/3152124.html

大家都在问