Mobile Development 12 min read

Hisense Aijia's HarmonyOS Migration: ArkTS, Scan Kit, Cast Engine & Foldable UI

Hisense Aijia's smart home app migrated to HarmonyOS using ArkTS, integrating Scan Kit for robust QR scanning, Cast Engine for low-latency screen casting, responsive layouts for foldable devices, and Account Kit for simplified OAuth login, cutting launch time to 2 seconds with HarmonyOS team support.

HarmonyOS Developer Technology
HarmonyOS Developer Technology
HarmonyOS Developer Technology
Hisense Aijia's HarmonyOS Migration: ArkTS, Scan Kit, Cast Engine & Foldable UI

Hisense Aijia Smart Home App Overview

Hisense Aijia, developed by Juhaokan Technology, is a smart home management platform covering Hisense appliances and ecosystem devices. It enables seamless interconnection across TVs, air conditioners, and other categories, providing a no-sense interactive experience.

Embracing the HarmonyOS Ecosystem

As HarmonyOS user base expanded, the product team proactively planned a HarmonyOS version. The development team initially worried about third-party library and toolchain support, but found migration from Android and iOS to be surprisingly smooth, laying a solid foundation for deeper integration of core HarmonyOS kits.

ArkTS Adoption and Toolchain Benefits

The team chose ArkTS for the HarmonyOS port. ArkTS's similarity to Dart (used by Flutter) significantly lowered the learning curve and refactoring cost. Web container migration effort was minimal, further shortening UI adaptation cycles. DevEco Studio and its Profiler performance analysis tool provided real-time monitoring of app metrics, enabling quick diagnosis of memory leaks and rendering jank, greatly improving debugging efficiency and code quality.

Distributed Architecture and System-Level Capabilities

HarmonyOS's distributed architecture exposes system-level capabilities — scanning, screen casting, account authorization — through a unified API abstraction layer as standardized services, supporting cross-device collaboration experience optimization.

1. Scan Kit: Unified Scanning Service

Integration of Scan Kit significantly improved QR code recognition accuracy and response efficiency. Scan Kit employs multiple computer vision and AI algorithms, enabling long-distance auto-scanning and optimized recognition in challenging scenarios: low light, damaged, blurred, small-angle, and curved-surface codes. It provides code recognition and generation for various scenarios. Users can scan to jump directly to the corresponding service page in the app for quick device addition or TV login, achieving one-step operation. It also supports generating dedicated QR codes from text or byte arrays for family member invitations.

For developers, Scan Kit offers a simple "scan-to-navigate" capability. As a software-hardware collaborative system service, it requires minimal integration work — no need to build a dedicated scanning module in the app — enabling scan-to-app jumps via the system-level scanning entry.

Scan Kit unified scanning service example
Scan Kit unified scanning service example
Hisense Aijia app scan-to-add-device interface
Hisense Aijia app scan-to-add-device interface
Default UI scanning sample code
Default UI scanning sample code
Custom UI scanning sample code
Custom UI scanning sample code

2. Cast Engine: Low-Latency Cross-Screen Casting

Cast Engine provides phone-centric large/small screen collaboration. Integration enables fast, stable, low-latency connection between phone and large-screen devices. Hisense Aijia uses it for one-click access to the phone gallery, projecting images in high definition and smooth motion, delivering a natural cross-screen experience.

Hisense Aijia app one-click casting feature
Hisense Aijia app one-click casting feature
Casting feature development flow
Casting feature development flow

3. Responsive Layout for Foldable Screens

After solving cross-screen collaboration and cross-device resource invocation, multi-device UI development became the next challenge. Responsive layout ensures consistent, smooth experience across devices with varying screen sizes and resolutions. Its core idea: pages automatically adjust layout based on screen size. For foldable devices, responsive layout must dynamically adapt to form-factor changes via state awareness. With HarmonyOS team assistance, Hisense Aijia completed foldable screen adaptation in early 2025, leveraging differentiated display space to optimize visual presentation and ensure interaction consistency across screen states.

HarmonyOS slab phone Hisense Aijia app page
HarmonyOS slab phone Hisense Aijia app page
HarmonyOS foldable screen Hisense Aijia app page
HarmonyOS foldable screen Hisense Aijia app page

4. Account Kit: Huawei Account One-Tap Login

Huawei Account one-tap login is built on OAuth 2.0 and OpenID Connect standards. Apps can conveniently obtain the user's identity identifier and phone number, quickly establishing an in-app user system. After login, users achieve fast authorization and silent login in Hisense Aijia, improving convenience and scenario coverage. The team noted this previously relied on a self-built membership system for multi-end authentication; integrating Account Kit effectively reduced backend development workload. Account Kit provides a one-tap login button that retrieves both phone number and UnionID. Developers simply embed the button in their login page; a click completes user authentication. This standardized integration ensures consistent user experience while drastically simplifying development complexity. It also deepens integration with the Huawei account ecosystem, laying groundwork for future cross-device collaboration features.

Collaborative Problem-Solving: Efficiency and Performance Gains

Beyond core capability integration, the HarmonyOS adaptation improved development efficiency and runtime performance, thanks to HarmonyOS's comprehensive developer support. A notable issue: touching an NFC tag opened the app but failed to retrieve the uid. The HarmonyOS team quickly identified the cause — the phone's NFC reader had already processed the card info and would not place it in tagInfo; the solution was to retrieve the URI via want.uri. The team's rapid response cleared the blocker, safeguarding project timeline and user experience smoothness.

HarmonyOS version Hisense Aijia app launches in 2 seconds
HarmonyOS version Hisense Aijia app launches in 2 seconds

The app now launches in just 2 seconds.

Future Outlook and HarmonyOS Ecosystem Growth

The Hisense Aijia team plans to continuously monitor HarmonyOS evolution in app development and cloud services, gradually integrating new capabilities under compliance to further enhance user experience and development efficiency. This path from technical adaptation to ecosystem fusion mirrors the smart home industry's move toward whole-home intelligence. Huawei's "1+2+N" solution provides a stable, reliable system-level foundation for whole-home intelligence.

HarmonyOS ecosystem has entered a flywheel acceleration phase: over 36 million devices run HarmonyOS 5 and 6, more than 10 million developers have joined, and over 60,000 apps and meta-services are listed on the HarmonyOS App Market. Developers and ecosystem partners are jointly exploring new development models, opening a new chapter of intelligent interaction.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

mobile developmentHarmonyOSfoldable screenArkTSsmart homeAccount KitCast EngineScan Kit
HarmonyOS Developer Technology
Written by

HarmonyOS Developer Technology

HarmonyOS developers provide key technology analysis, version updates, Codelabs practice, and event information for HarmonyOS. Welcome developers to join the HarmonyOS ecosystem and create infinite possibilities together!

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.