首页 > 解决方案 > appcenter 推送通知名称未显示在通知中

问题描述

我正在使用应用中心推送通知,并且我正在发送 http post 请求以使用 appcenter 推送的 api 发送推送。当我使用此有效负载发送推送通知时

    {
 "notification_content" : {
  "name" : "First Push From App Center",
  "title" : "Push From App Center",
  "body" : "Welcome!",
  "custom_data" : {"key1" : "val1", "key2" : "val2"}
  },
    "notification_target" : {
    "type" : "audiences_target",
    "audiences" : ["a-1", "a-2"]
  }
}

网址

https://api.appcenter.ms/v0.1/apps/XXXX/${platform}/push/notifications _

我在手机中收到通知,但只有标题和正文,我没有看到“从应用中心首次推送”的名称

标签: push-notificationvisual-studio-app-center

解决方案


通知的名称不会推送到设备,它只是一个名称,您可以记住在列出它们时创建了哪些通知。例如,当您列出您创建的所有推送通知时,名称将出现在门户中。


推荐阅读