Berend Vandenbussche
Berend Vandenbussche

Reputation: 106

Sending realtime data from standalone Apple watch app to web application

For my bachelor's thesis, I chose to research the possibility to send real-time workout data such as heart rate, distance, calories, gps,... from a standalone Apple Watch app to a react web application (fitness dashboard). The project should make it easy for family and friends to track your run from home. When researching how to do this I came up with 2 possibilities. The first one is sending the data with socket io to my Python backend server and using WebSockets to send it to the web application. The second option was using the WebRTC technology to create a peer-to-peer connection between the Watch and frontend.

I chose to do the first one because of the complexity of using WebRTC for the first time and lost some time trying to implement it.

I can't help to feel that there should be a better way to do this. As I'm reflecting on the project in my thesis I would like to know if anyone knows a better solution for this use case.

Upvotes: 2

Views: 1562

Answers (1)

Jaci257
Jaci257

Reputation: 11

You should give StarScream a try, it still gets updates quite regularly and would work perfectly with the solution you have right now. When using WebSockets and therefore a backend it's also quite easy to expand upon this project and add a database if you aren't saving data to one already.

Upvotes: 1

Related Questions