Ios 从web界面发送解析JSON推送
我试图从解析web界面向我的iPhone发送JSON推送,但它不起作用 网络服务告诉我状态为“完成”,通知为“无警报”,但我的iPhone上没有任何通知 这就是我得到的: 这是我发送的JSON:Ios 从web界面发送解析JSON推送,ios,json,push-notification,parse-platform,Ios,Json,Push Notification,Parse Platform,我试图从解析web界面向我的iPhone发送JSON推送,但它不起作用 网络服务告诉我状态为“完成”,通知为“无警报”,但我的iPhone上没有任何通知 这就是我得到的: 这是我发送的JSON: { "data": { "alert": "A test notification from Parse!" } } 是的,一个简单的推送消息(无JSON)可以很好地工作 感谢您的帮助尝试{“aps”:{“alert”:“来自Parse!”的测试通知}我使用了以下JSON,并且它对我有效(正确显示标题
{ "data": { "alert": "A test notification from Parse!" } }
是的,一个简单的推送消息(无JSON)可以很好地工作
感谢您的帮助尝试
{“aps”:{“alert”:“来自Parse!”的测试通知}
我使用了以下JSON,并且它对我有效(正确显示标题和警报消息):
{
“名称”:“名称”,
“警报”:“,
}
我从代码中还发现,如果您不通过重写ParsePushBroadcastReceiver的onPushOpen来实现任何魔法,那么您可以添加一个uri和一个操作。例如,我们使用此版本向用户发送有关可用更新的信息(如果该版本非常过时):
{
“名称”:“名称”,
“警报”:“,
“uri”:https://play.google.com/store/apps/details?id=",
“action”:“android.intent.action.VIEW”
}
{
"title": "<the title goes here>",
"alert": "<the message goes here>",
}
{
"title": "<the title goes here>",
"alert": "<the message goes here>",
"uri": "https://play.google.com/store/apps/details?id=<package name>",
"action": "android.intent.action.VIEW"
}