ios - Background Fetches Not Firing -
i have following:
in settings, capabilities have background fetch checked.
in appdelegate.m
- (bool)application:(uiapplication *)application didfinishlaunchingwithoptions:(nsdictionary *)launchoptions { // override point customization after application launch. [application setminimumbackgroundfetchinterval:uiapplicationbackgroundfetchintervalminimum]; homecoming yes; } - (void) application:(uiapplication*) application performfetchwithcompletionhandler:(void (^)(uibackgroundfetchresult))completionhandler { nslog(@"a fetch got called"); completionhandler(uibackgroundfetchresultnodata); } but, when debug code on iphone performfetch doesn't fire except when nail "simulate background fetch" in debug menu. isn't phone supposed periodically fire on own? missing?
ok. worked. wasn't patient enough. seem fire rather infrequently , when doing else phone (making call, entering passcode, etc). how typically fire? know can indicate desired fire rate setting background minimum fetch interval, curious how fire default?
ios xcode background-process
No comments:
Post a Comment