【发布时间】:2020-07-07 18:45:00
【问题描述】:
详情
我们正在使用Microsoft.Azure.NotificationHubs 在我们的 ios 和 android 应用中实现推送通知。我们正在使用installations,希望能够使用templates。我们已成功将安装发布到我们的通知中心。
这是我们中心内的实际安装
{
"installationId": "fh0496fb-ac92-f48a-6b0a-a67efaa8f907",
"pushChannel": "<hidden for stackoverflow post, is actually valid push handle>",
"pushChannelExpired": false,
"platform": "apns",
"expirationTime": "9999-12-31T23:59:59.9999999Z",
"tags": [
"Location:Boise",
"UserEmail:<hidden for stackoverflow post, is actually valid email>"
],
"templates": {
"ApnsFull": {
"body": "{\"aps\":{\"alert\":{\"title\":\".(title, 33)\", \"subTitle\":\"$(subTitle)\", \"body\":\"$(message)\"}}}",
"tags": [
"ApnsFull"
]
},
"ApnsSimple": {
"body": "{\"aps\":{\"alert\":\"$(message)\"}}",
"tags": [
"ApnsSimple"
]
}
}
}
问题
我们正在使用 ClientHub 方法 SendTemplateNotificationAsync。我们正在构建TemplateNotifications 并适当地设置新需要的headers for iOS13。 我们按预期收到了NotificationOutcome,但令人困惑的是结果总是
{
"Success": 0,
"Failure": 0,
"Results": null
}
问题
为什么没有发送通知?
谢谢,让我知道您需要有关我们设置的其他信息,以帮助提供解决方案!
【问题讨论】:
标签: azure push-notification azure-notificationhub