看板 MacDev 關於我們 聯絡資訊
請教關於background receive notification的問題 如果background modes的background fetch,remote notifications 已經打開 當app在背景接收到notification時,我必須決定哪些notificaion可以 顯示,那些不行 根據文件應該是在 - (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler 這個delegate中處理,但是app在背景接收到notification時,我都不會觸發這delegate ,請問有哪裡沒注意到嗎? Deployment Target:7.0 感謝 -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 211.72.69.111 ※ 文章網址: https://www.ptt.cc/bbs/MacDev/M.1437999450.A.B7E.html ※ 編輯: valda (211.72.69.111), 07/27/2015 20:20:10
appleway: "content-available":"1" ?? 07/27 21:31
s001582000: 背景推播只要remote notifications 推播訊息要有conte 07/28 11:00
s001582000: "content-available":"1" 07/28 11:01
darktt: 這個功能在app沒有執行的情況下是不會被觸發的 07/28 13:06