1
当我的应用程序处于前台但我不能在后台工作时,我可以收到推送通知。Gcm ios推送通知在后台失败
当我发送JSON有以下形式:
{
"data":{"message":"test ios push notification"},
"time_to_live":604800,
"registration_ids":["key...."],
"collapse_key":"GCM Notifications",
"content_available":1,
"priority":"high"
}
在我的应用程序在前台得到(背景没有):
{
aps = {
"content-available" = 1;
};
"gcm.message_id" = " whatever ";
message = "test ios push notification";
}
我觉得现在的问题是围绕content_available但我不知道为什么我发送content_available并返回内容可用。这是一个正常的转换?