【发布时间】:2015-06-10 09:53:22
【问题描述】:
我尝试按照 Koh 建议的 here 做,我的问题是当我发送这个 JSON 时:
{
"to": "/topics/test",
"data": {
"aps" : {
"alert" : "You got your emails."
}
}
}
但我收到的通知是:
Notification received: {
aps = "{\"alert\":\"You got your emails.\"}";
"collapse_key" = "do_not_collapse";
from = "/topics/test";
}
在我收到之前,JSON aps 似乎已更改为一个简单的字符串。 有没有办法获得正确的通知语法以便我的应用识别它?
【问题讨论】:
标签: ios google-cloud-messaging