作者valda (valda)
看板MacDev
标题[问题] background receive notification
时间Mon Jul 27 20:17:28 2015
请教关於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://webptt.com/cn.aspx?n=bbs/MacDev/M.1437999450.A.B7E.html
※ 编辑: valda (211.72.69.111), 07/27/2015 20:20:10
1F:推 appleway: "content-available":"1" ?? 07/27 21:31
2F:推 s001582000: 背景推播只要remote notifications 推播讯息要有conte 07/28 11:00
3F:→ s001582000: "content-available":"1" 07/28 11:01
4F:→ darktt: 这个功能在app没有执行的情况下是不会被触发的 07/28 13:06