Fitbit creates wireless activity trackers that empower people to live healthier lives. My new mobile app, Fitwatchr, allows Fitbit users to combine their daily calorie tracking features with scientific formulas, motivating them to lose weight, earn extra calories, and achieve their weight loss goals. It is available on iOS and Android.
I had the idea for Fitwatchr almost immediately after receiving a Fitbit device last summer. Having begun a weight loss program around the same time, I recognized that the Fitbit activity and calorie data could be used to complement it in a unique way. In order to reach a large user base, I decided to target both iOS and Android. There was a problem, though. While I had done some Android development in the past, I had no experience with iOS/Objective-C. While I was certainly capable of investing the time to learn Objective-C, I wondered if there was a more efficient route. I had heard of PhoneGap before and decided to investigate; the idea of reusing my web development skills was very appealing. I was initially skeptical of the “write once, run everywhere” mantra, but soon after exploring PhoneGap and the companion Build service, I was convinced.
The PhoneGap Build service was a huge help as I built out the app. Using the following core Build features, Fitwatchr was able to successfully become a Top 5 Health & Fitness app on iOS.
As I began to plan the first version of Fitwatchr, I realized that I would need some way to implement an OAuth 2.0 flow for allowing users to connect their Fitbit account to my app. I was concerned until I realized that PhoneGap Build provides plugins that anyone can leverage to add native functionality to their apps. The list of available plugins is very impressive and expanding rapidly. From barcode scanning to bluetooth and power management, virtually any native need is now available. Additionally, developers can submit their own plugins to be listed and shared with others.
One of the greatest aspects of PhoneGap web development is the ability to run an app locally in the browser, permitting fast iterations. PhoneGap Build’s Hydration capabilities further improve development speed by automatically uploading the latest build to installed devices. This is especially useful when multiple end users are involved with testing; the developer uploads the latest code, the tester is notified, and the changes are applied immediately. I leveraged Hydration primarily for testing the PhoneGap plugins. Since they must run on a device, Hydration was invaluable when debugging issues or testing new features.
I incorporated plugins into the app and used Hydration to quickly push updates to my test mobile device, but there was still one problem: fixing issues that only appeared on the device. Fortunately, remote debugging allows you to review the app while it is running in real-time. After enabling a debug setting and launching the debug web page from within PhoneGap Build, all you have to do is open the app on the mobile device and select the device name on the page.
Using these three key features of the PhoneGap Build service, I created an initial version of Fitwatchr within a few months of nights and weekends. I partnered up with David Lapekas, the Creative Director at UNIVERSALD INC., to help with the first phase of branding, website development, and social media marketing. We have a great foundation that we are continuing to build on, with 3,000 users and counting. In future releases, we plan to add new features and continue to refine the user experience. Phase 2, which includes a mobile UI redesign, is currently in progress; we are looking forward to this next big release!
Guest blog post by Matt Netkow, Senior Developer for The SAVO Group
Based in Chicago, he does sales productivity consulting at SAVO and works on mobile development projects in his spare time through his company, Netkosoft.