且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

iOS应用未收到来自Firebase的后台推送通知

更新时间:2022-06-10 22:15:11

检查前台在应用程序中收到的有效负载结构.通常,它与Android不同. iOS有效负载结构应为:

Check the payload structure you received in the app while foreground. Normally it's different compared to Android. The iOS payload structure should be :

{
   "aps" : {
     "alert" : {
       "body" : "great match!",
       "title" : "Portugal vs. Denmark",
     },
     "badge" : 1,
   },
   "Custom_Data" : "Game level name"
 }