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

前端 未结 8 2174
自闭症患者
自闭症患者 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:53

    Format below (no notification body, nor are there any arrays) fixed the timestamp exception for me:

    {
      "to": "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
      "data":  {
          "message": "message",
          "title": "hello",
      }
    }
    

    Tested fine with http://pushtry.com/

    The only reason I included the long 'eeee...' is that is the exact size of my token.

提交回复
热议问题