Update 1: I’m stopping the background task once im done with my work
I was able to implement the method in UIApplicationDelegate however im not able to achieve consistent polling time. Do i need to stop the background service upon completion?
@Override
@Selector("application:performFetchWithCompletionHandler:")
public void applicationPerformFetchWithCompletionHandler(
UIApplication application,
@ObjCBlock(name = "call_applicationPerformFetchWithCompletionHandler") UIApplicationDelegate.Block_applicationPerformFetchWithCompletionHandler completionHandler){
//Do the work, not ending background task
}