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.