Developing Companion App for Smartwatch

TRUETECH is engaged in the development, support and maintenance of iOS, Android, PWA mobile applications. We have extensive experience and expertise in publishing mobile applications in popular markets like Google Play, App Store, Amazon, AppGallery and others.
Development and support of all types of mobile applications:
Information and entertainment mobile applications
News apps, games, reference guides, online catalogs, weather apps, fitness and health apps, travel apps, educational apps, social networks and messengers, quizzes, blogs and podcasts, forums, aggregators
E-commerce mobile applications
Online stores, B2B apps, marketplaces, online exchanges, cashback services, exchanges, dropshipping platforms, loyalty programs, food and goods delivery, payment systems.
Business process management mobile applications
CRM systems, ERP systems, project management, sales team tools, financial management, production management, logistics and delivery management, HR management, data monitoring systems
Electronic services mobile applications
Classified ads platforms, online schools, online cinemas, electronic service platforms, cashback platforms, video hosting, thematic portals, online booking and scheduling platforms, online trading platforms

These are just some of the types of mobile applications we work with, and each of them may have its own specific features and functionality, tailored to the specific needs and goals of the client.

Showing 1 of 1 servicesAll 1735 services
Developing Companion App for Smartwatch
Complex
~1-2 weeks
FAQ
Our competencies:
Development stages
Latest works
  • image_mobile-applications_feedme_467_0.webp
    Development of a mobile application for FEEDME
    756
  • image_mobile-applications_xoomer_471_0.webp
    Development of a mobile application for XOOMER
    624
  • image_mobile-applications_rhl_428_0.webp
    Development of a mobile application for RHL
    1052
  • image_mobile-applications_zippy_411_0.webp
    Development of a mobile application for ZIPPY
    947
  • image_mobile-applications_affhome_429_0.webp
    Development of a mobile application for Affhome
    862
  • image_mobile-applications_flavors_409_0.webp
    Development of a mobile application for the FLAVORS company
    445

Smartwatch Companion App Development

Companion app — phone part of "phone + watch" pair. Its task: receive watch data, send configuration, sync state. Sounds simple. In practice — separate architecture layer with async channels, version conflicts, behavior changing based on whether watch connected at request moment.

Where Real Problems Arise

State inconsistency. Watch sent data via DataClient, phone was background and processed message in WearableListenerService.onDataChanged(). User opens app — UI shows old state, because ViewModel doesn't know Room already updated. Classic race condition, reproduces only at specific background processing timing.

Solution: WearableListenerService writes to Room via Repository, ViewModel subscribed to Flow from DAO. No LiveData via EventBus — only reactive chain.

Protocol versioning. Phone app updated, watch app — not yet (user didn't go to Google Play on watch). If DataMap structure changed — watch app crashes on deserialization. Must version protocol: add protocol_version field to each PutDataMapRequest. Phone side gracefully handles old versions.

Background work on Android 14+. WearableListenerService still launched by system on data receive — exception from background service limitations. But if companion app makes HTTP request in response to watch data, need WorkManager with setExpedited(OutOfQuotaPolicy.RUN_AS_NON_EXPEDITED_WORK_REQUEST). Direct Retrofit call from service blocked on Android 14 with ForegroundServiceStartNotAllowedException.

Companion App Architecture

WearableListenerService
    ↓ (coroutine, Dispatchers.IO)
Repository
    ↓
Room DAO (Flow)
    ↓
ViewModel (StateFlow)
    ↓
Compose UI

For configuration (settings user changes on phone, sent to watch) — DataClient.putDataItem() with path /config/v2. Path versioned explicitly.

For real-time commands (pause training, skip track) — MessageClient.sendMessage(). Faster than DataClient, but no delivery guarantee when watch disconnected.

For large files (route database update, media library sync) — ChannelClient. Open channel, transfer via OutputStream, close. Only way to transfer more than few kilobytes without risk of Data Layer limits (100 KB per DataItem).

Watch availability check. Before sending data check CapabilityClient.getCapability(CAPABILITY_NAME, CapabilityClient.FILTER_REACHABLE). If watch unavailable — queue data (Room + WorkManager), send on next connect via CapabilityClient.addListener().

Multi-Platform Support

If watch — Apple Watch, companion built on WatchConnectivity framework (iOS). WCSession.default.sendMessage() for real time, transferUserInfo() for background sync. Logic same, API different.

Flutter apps integrate with Wear OS via wear package or direct platform channels to native WearableListenerService. React Native — similarly via native module.

Timeframes

Companion app for Android + Wear OS with two-way sync: 3–6 weeks depending on data volume and UI complexity. Multi-platform (iOS + WatchOS): separate assessment after TS analysis.