iOS : Use of HKObserverQuery’s background update completionHandler
When should the handler be called? Call it after you are done your job. Your code should not do complex operations. The app is in the background and the user does not see what’s changed. You can just set a “flag” that data is updated and do complex operations after the user launched the app. … Read more