title: Save/Delete to HealthKit With WatchKit and Widget (Today Extension)?
body: <p>Here is a question that I know has an answer since I see apps that do this functionality. I have tried (writing directly, using background fetch) but nothing works. I found an app currently on the app store with the functionality that I am looking for. With Background Fetch set to OFF and main app NOT running in background. I go to the Widget and add an item. I open HealthKit and I see the data there as expected.</p>
  
  <p>I would like to do the same for my app. I would like my today extension (widget) and/or WatchKit extension to write to the HealthKit store even when app is not running in background. 
  Like I said I have tested an app that does this functionality even though in Apple documentation it says this:</p>
  
  <blockquote>
    <p>The HealthKit store can only be accessed by an authorized app. You
    cannot access HealthKit from extensions (like the Today view) or from
    a WatchKit app.</p>
    
    <p>Because the HealthKit store is encrypted, your app cannot read data
    from the store when the phone is locked. This means your app may not
    be able to access the store when it is launched in the background.
    However, apps can still write data to the store, even when the phone
    is locked. The store temporarily caches the data and saves it to the
    encrypted store as soon as the phone is unlocked.</p>
  </blockquote>
  
  <p>Any answers or insights are appreciated. Thanks everybody.</p>