New developer question - exporting Apple Watch data to central server

This is probably a basic question but I wanted to ask your advice for the best way to take consenting users' Watch data from Apple Health Kit and send it to our central server? One idea we had was to create an iOS app that gets the data from Apple's Health SDK on the phone and sends it to our server. Would appreciate any help here, thank you.

Answered by DTS Engineer in 844396022

Nothing to do with networking is ever “basic” |-:

[what’s] the best way to take consenting users' Watch data from Apple Health Kit and send it to our central server?

The best approach depends on the networking protocol spoken by your server. Presuming it’s HTTPS, I generally recommend using URLSession directly from your app. URLSession supports two style of session:

  • Standard sessions

  • Background sessions

A standard session is best for small amounts of data where latency is critical. A background session is best for situations where latency isn’t such a big deal, or where you have a lot of data to upload.

URLSession is one of our better documented APIs. Start with URL Loading System.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Nothing to do with networking is ever “basic” |-:

[what’s] the best way to take consenting users' Watch data from Apple Health Kit and send it to our central server?

The best approach depends on the networking protocol spoken by your server. Presuming it’s HTTPS, I generally recommend using URLSession directly from your app. URLSession supports two style of session:

  • Standard sessions

  • Background sessions

A standard session is best for small amounts of data where latency is critical. A background session is best for situations where latency isn’t such a big deal, or where you have a lot of data to upload.

URLSession is one of our better documented APIs. Start with URL Loading System.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

New developer question - exporting Apple Watch data to central server
 
 
Q