【问题标题】:appcenter push notification name not shown in notificationappcenter 推送通知名称未显示在通知中
【发布时间】:2018-11-11 01:13:22
【问题描述】:

我正在使用应用中心推送通知,并且我正在发送 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-notification visual-studio-app-center


    【解决方案1】:

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

    【讨论】:

    • 我可以添加标题、标题和内容来推送吗?我的意思是在设备上推送 3 个不同的文本?
    • 今天不可能。它需要静默推送支持(例如,仅发送自定义数据而不发送通知)并在应用程序中通过自定义数据的静默推送构建自定义通知。不幸的是,App Center 不支持静默推送。
    猜你喜欢
    • 1970-01-01
    • 2021-09-29
    • 1970-01-01
    • 1970-01-01
    • 2021-02-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多