willem.com

Building a Native smartphone Cycling and Running Tracker

Tackling Swift, Bluetooth, and GPS to make a simple fitness tracker

May 11, 2024 -

As a little side-project, squeezed between my normal work, I have been working on something of personal interest: a native workout tracking app for iOS. I wanted to make my smartwatch obsolete, instead using my phone to track workouts. How hard could it be to gather detailed sensor data using native Swift APIs?

Continue reading
My bike with Bluetooth sensors connected to my MacBook running Xcode
My bike with Bluetooth sensors connected to my MacBook running Xcode
I used my Garmin Edge data layout as an inspiration when designing my app's layout when used as mounted bike computer
I used my Garmin Edge data layout as an inspiration when designing my app's layout when used as mounted bike computer
Early prototype of the app working with Bluetooth heartrate sensor and its early dataset shown in another app that makes some pretty graphs (HealthFit)
Early prototype of the app working with Bluetooth heartrate sensor and its early dataset shown in another app that makes some pretty graphs (HealthFit)
Different configurations of realtime data
Different configurations of realtime data
Apple Watch workout app shows large buttons to start a workout - no need for additional configuration
Apple Watch workout app shows large buttons to start a workout - no need for additional configuration
I got some magic in my pocket: The app tracking workouts from the background - during recordings it just shows a widget on the homescreen
I got some magic in my pocket: The app tracking workouts from the background - during recordings it just shows a widget on the homescreen

Other stories

all blog posts

Tagged

AppleBikeCreatingDataDesignLifestyleHeartMinimalProgrammingSensorsSportWatch

Articles (153)