[問題] background receive notification

看板MacDev作者 (valda)時間10年前 (2015/07/27 20:17), 10年前編輯推噓2(202)
留言4則, 3人參與, 最新討論串1/1
請教關於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

07/27 21:31, , 1F
"content-available":"1" ??
07/27 21:31, 1F

07/28 11:00, , 2F
背景推播只要remote notifications 推播訊息要有conte
07/28 11:00, 2F

07/28 11:01, , 3F
"content-available":"1"
07/28 11:01, 3F

07/28 13:06, , 4F
這個功能在app沒有執行的情況下是不會被觸發的
07/28 13:06, 4F
文章代碼(AID): #1LjY5Qj- (MacDev)
文章代碼(AID): #1LjY5Qj- (MacDev)