我已經經歷了很多帖子,回合無法弄清楚有沒有辦法在應用程序退出時獲取推送通知。iOS - 獲取推送通知當應用程序強制退出用戶
我試着用content_available(true/1)和Priority爲High,我聽到通知聲音,但沒有通知徽章或App上的內容。任何線索將不勝感激。
{ to=/topics/lshekhar,
content_available=1,
collapse_key=sample,
delay_while_idle=true,
delivery_receipt_requested=true,
priority=10,
data={message={ "id" : "eARMS",
"submitter" : "lshekhar",
"topic" : "/topics/lshekhar"
}},
time_to_live=10000,
notification={"sound":"default"},
message_id=m-3319428685310488470,
badge=12}
它發生在前景或背景 –
APNS我們不能在自動 –
處理例如看到這個https://stackoverflow.com/questions/39382852/didreceiveremotenotification-not-called-ios-10/39383027#39383027 –