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並返回內容可用。這是一個正常的轉換?