Posted by Kseniia Shumelchyk, Android Developer Relations Engineer
In collaboration with our {hardware} companions, we’ve continued to prioritize the Put on OS by Google person expertise. As such, we’ve made elementary design adjustments to the platform and considerably expanded the capabilities of the Put on OS hybrid interface that enhance two key areas: energy and efficiency.
With OnePlus Watch 2, powered with the newest model of Put on OS (Put on OS 4), the dual-chipset structure works with our hybrid interface to get each chips to work higher in tandem. This permits much more use instances to profit from dramatically prolonged battery lifetime of as much as 100 hours of standard use with all functionalities accessible in Sensible Mode.
Collectively, we’ve created a premium smartwatch expertise that doesn’t compromise the superior function set or battery life. On this publish, we’ll share how one can profit from these adjustments when constructing experiences for Put on OS.
On the sting of innovation: redesigned smartwatch structure
Put on OS smartwatches have a dual-chipset structure inclusive of a robust software processor (AP) and extremely low-power co-processor microcontroller unit (MCU). The structure has a robust AP able to dealing with advanced operations en-masse, and is seamlessly coupled with a low energy MCU.
The Put on OS hybrid interface allows clever switching between the MCU or the AP, permitting the AP to be suspended when not wanted to protect battery life. It helps, for example, obtain extra power-efficient experiences, like sensor information processing on the MCU whereas the AP is asleep. On the similar time, the hybrid interface offers a seamless transition between these states, holding a wealthy and premium person expertise with out jarring transitions between energy modes.
Connectivity and notification expertise
To reinforce connectivity-reliant interactions like notifications and cellphone calls, OnePlus utilized platform capabilities with the notification API within the hybrid interface, enabling the MCU to course of common notification experiences and cut back the necessity to activate the AP.
For instance, bridged notifications might be delivered to the watch with out waking up the high-performance AP. Customers can learn and dismiss these notifications whereas the watch continues to be powered by the MCU. The MCU may deal with wearable-specific actions in notifications, resembling fast replies or distant actions.
What this implies for growth
You possibly can leverage current Put on OS APIs to get these optimizations with none added effort – no code adjustments required!
Notifications
The notification hybrid interface allows seamless transitions between energy modes to work with the Put on OS notification stack. You get one of the best notification efficiency by utilizing the Notification API.
Well being & Health experiences
The Put on OS hybrid interface additionally elevates the health expertise with extra exact exercise monitoring, automated sports activities recognition and smarter well being information monitoring. All of those will be supplied to customers with out compromising battery life.
Beginning with Put on OS 3, builders use Well being Companies on Put on OS to realize entry to sensor information. The well being hybrid interface works beneath the hood to allow energy optimizations by batching sensor information on the MCU and periodically updating developer apps by the Well being Companies API on the AP.
Watch Faces
With Put on OS 4, we launched the Watch Face Format, a declarative XML format to create customizable and power-efficient watch faces.
The platform has created capabilities to implement Watch Face Format rendering on the MCU, so utilizing the brand new format helps future-proof sure watch faces to reap the benefits of rising optimizations in future gadgets for higher battery utilization.
Take a look at the watch face format documentation and design pointers for Put on OS watch faces.
Broaden your attain with Put on OS
With the additions to the Put on OS smartwatch ecosystem and expanded system capabilities, it is an excellent time to construct experiences for smartwatches that may attain extra customers and profit your corporation.
To start creating apps for Put on OS, attempt our Compose for Put on OS codelab, and take a look at the documentation and samples.
Learn extra about developer updates in Put on OS 4, and how one can get your apps prepared for the newest Put on OS watches.
We will’t wait to see what experiences you’ll construct!