Challenge
The key challenges in the project included:
- Ensuring smooth OAuth 2.0 authentication for first-time and returning users.
- Pulling structured fitness and health data from Google Fit’s REST and Android SDK.
- Implementing periodic background data sync without excessive battery drain.
- Managing data permission scopes transparently for the user.
- Displaying the synced data in an intuitive and visual-friendly UI.
Our Solution
To meet the technical and UX requirements, WebAcer Software developed a modular integration strategy with:
✅ Key Features Implemented:
- Secure Google Sign-In with OAuth2
Enabled users to connect their Google Fit account safely with consent-based permission prompts and refresh tokens. - Granular Permission Handling
Scoped access requests to only essential data types (e.g., step count, sleep sessions, heart points), boosting user trust and app ratings. - Real-Time Data Sync & Display
UtilizedFitnessOptionsandSensorsClientfrom the Google Fit SDK to fetch and display live fitness metrics. - Battery-Efficient Background Sync
UsedWorkManagerto schedule background data refresh tasks, optimised for Doze mode and connectivity status. - Data Caching & Offline Support
Integrated SQLite-based local caching to allow offline data access and reduce API latency.
Tech Stack
- Android SDK
- Google Fit API (Fitness API, REST & Android SDK)
- WorkManager & Room DB
- Material UI for Android







