push-notification - 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 _
我在手机中收到通知,但只有标题和正文,我没有看到“从应用中心首次推送”的名称
解决方案
通知的名称不会推送到设备,它只是一个名称,您可以记住在列出它们时创建了哪些通知。例如,当您列出您创建的所有推送通知时,名称将出现在门户中。
推荐阅读
- c# - 为什么这个函数不会更新变量?
- python - 错误“无法将字符串转换为浮点数:'INLAND'”
- javascript - 将 HTML 标记设置为对象的值
- regex - 正则表达式:在两个特定单词之间输出
- c++11 - 为什么指向向量最后一个元素的迭代器包含损坏的值?(参考代码)
- javascript - 如何修复未填充在视图中但在控制器中有数据的 jsonresult
- chef-infra - 上次签到在 Chef 中不断更新 - 调度
- php - 如何在 PHP 中使用 mysqli_real_escape_string() 来转义除换行符以外的所有字符?
- c++ - 将空元素添加到声明的容器而不声明元素的类型
- java - 如何有效地将(弹性搜索查询)转换为 java?