Firebase API is not sending push notifications when using the API

前端 未结 2 2078
無奈伤痛
無奈伤痛 2020-12-06 13:16

I\'m migrating from Parse to Firebase and facing a problem with our ios app. The Firebase API does not send push notifications to the ios app. This is what im sending to htt

2条回答
  •  甜味超标
    2020-12-06 13:39

    I got contacted by Firebase support and was able to find out what is wrong

    My push payload was missing a notification object

    { 
     "to": "",
     "priority": "high",
     "notification": {
        "title": "Your Title",
        "text": "Your Text"
      }
     "data": {
         "customId": "",
         "badge": 1,
         "sound": "cheering.caf",
        "alert": "New data is available"
      }
    }
    

    I hope that helps someone else

提交回复
热议问题