Android/Firebase - Error while parsing timestamp in GCM event - Null timestamp

前端 未结 8 2166
自闭症患者
自闭症患者 2020-11-28 14:38

I\'m building an Android app which will receive push notifications. I\'ve got Firebase Cloud Messaging setup and pretty much working, such that I can send the following payl

8条回答
  •  野性不改
    2020-11-28 14:50

    I was running into this same error, I resolved by adding a ttl value to the payload.

    {
       "to":"",
       "notification":{"body":"BODY TEXT","title":"TITLE TEXT","sound":"default"},
       "data":{"message":"This is some data"},
       "ttl": 3600
    }
    

提交回复
热议问题