HarmonyOS NEXT Wrapper (Beta)

Content Type: Module
Categories: Mobile

Overview

HarmonyOS NEXT Development Suite

Enable your Mendix applications to support HarmonyOS NEXT systems through this comprehensive development suite. This package contains two core modules that work together to provide complete native mobile capabilities and seamless application deployment.

Module 1: HarmonyOS NEXT Wrapper (Mobile Capabilities)

This module is based on a native wrapper for PWA. It provided JavaScript actions to access mobile device functionalities. This module enables seamless integration with device hardware features including ambient light sensors, clipboard operations, file system access, printing capabilities, proximity sensors, QR code scanning, content sharing, media capture (photo/video), and vibration control. Enhance your mobile applications with native device capabilities for a superior user experience.

Module2: HarmonyOS NEXT  App Builder

Build and deploy your Mendix apps natively on HarmonyOS NEXT with just a few clicks!  This Mendix extension enables developers to compile and package Mendix applications specifically for HarmonyOS NEXT. Seamlessly extend your app's reach to Huawei devices running Harmony OS Next.

What This Extension Does?

The HarmonyOS NEXT App Builder is an extension that provides a streamlined workflow to:

  • Package your Mendix applications for HarmonyOS NEXT compatibility
  • Manage permissions and app configurations
  • Handle signing certificates and profiles
  • Deploy directly to connected Harmony devices

Platform Support

  • HarmonyOS NEXT
  • Mendix Studio Pro 10.24.0 or Higher
  • AppGallery developer account
  • HarmonyOS NEXT device for testing (optional but recommended)

Documentation

HarmonyOS NEXT Development Suite

 

This development suite contains two collaborative modules:

📱 HarmonyOS NEXT Wrapper

Provides native device functionality access

  • Hardware integration: sensors, Bluetooth, NFC, Deeplink
  • File management, media capture, QR code scanning
  • User interaction features: clipboard, vibration, sharing
  • HMS Push integration and local notification management

🔧 HarmonyOS NEXT App Builder

Provides app compilation and deployment capabilities

  • One-click compilation of Mendix apps to HarmonyOS NEXT native format
  • Certificate and permission management interface
  • Direct device deployment and app publishing

Installation Requirements

  • Dependencies: Mendix Studio Pro 10.24.0 or higher
  • Platform Support: HarmonyOS NEXT
  • Developer Account: Huawei AppGallery Connect access required

After installing the suite, you will see two modules in your project. Please refer to their respective documentation below.

 

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

HarmonyOS NEXT Wrapper

📦 This module is part of the HarmonyOS NEXT Development Suite

Typical usage scenario

The module is designed for Mendix developers building mobile applications that require access to native device functionalities. This module is particularly useful for:

  • Applications requiring interaction with mobile hardware sensors (ambient light, proximity)
  • Apps needing file management capabilities (selection, sharing, uploading)
  • Mobile solutions that enhance user experience through native features (clipboard, vibration, sharing)
  • Enterprise applications requiring document handling (printing, sharing documents)
  • Applications with media capture requirements (photos, videos)
  • Apps requiring push notifications and local notifications for user engagement
  • Applications needing HMS push integration for Harmony devices
  • Mobile apps requiring app badge management and notification permissions handling

This module bridges the gap between web-based Mendix applications and native device capabilities, enabling a more integrated and seamless user experience.

Features and limitations

Features:

  • Sensor Access: Subscribe to ambient light and proximity sensors
  • Clipboard Management: Copy, paste, and clear clipboard content
  • File Handling: Select files from device storage
  • Printing Capabilities: Print files and web pages
  • Sharing Functions: Share documents and text content
  • Media Capture: Take photos and record videos
  • QR Code: Scan QR codes
  • Haptic Feedback: Control device vibration patterns
  • Push Notifications: HMS Push integration for reliable message delivery on Harmony devices
  • Local Notifications: Send local notifications to users with customizable content
  • Badge Management: Set and manage app icon badge numbers

Limitations:

  • Features availability depends on the hardware capabilities of the device
  • Background execution of certain sensors may impact battery performance

Installation

  1. Import the "HarmonyOS NEXT Wrapper" module from the Mendix Marketplace
  2. Add the module as a dependency in your Mendix project
  3. Ensure the required permissions are configured in your native app's settings
  4. Synchronize your project and rebuild your  app

Configuration

  • Implementing JavaScript Actions:
    • Drag the desired JavaScript action from the module into your nanoflow
    • Configure the required parameters for each action
    • Connect the action's response to appropriate handling logic
  • Sensor Usage:
    • When using sensor subscriptions (Ambient Light, Proximity), always implement the corresponding unsubscribe actions when the feature is no longer needed to prevent battery drain

Known bugs

 

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

HarmonyOS NEXT App Builder

📦 This module is part of the HarmonyOS NEXT Development Suite

Typical Usage Scenario

The HarmonyOS NEXT App Builder extension enables Mendix developers to compile and deploy their applications directly to HarmonyOS NEXT-powered devices. This extension is particularly valuable for:

  • Organizations looking to expand their application reach to HarmonyOS NEXT device users
  • Teams wanting to leverage Mendix's low-code capabilities while accessing the growing HarmonyOS NEXT ecosystem
  • Projects requiring native HarmonyOS NEXT capabilities not available through web applications

Features and Limitations

Features

  • One-click compilation of Mendix applications to HarmonyOS NEXT native format
  • Comprehensive permission management through user-friendly interface
  • Built-in certificate and signing management tools
  • Direct deployment to connected HarmonyOS NEXT devices
  • Support for both development and production environments
  • User-friendly GUI for configuration management

Limitations

  • Requires separate AppGallery developer account and approval process
  • Updates to the HarmonyOS NEXT platform may occasionally require extension update

Installation

  1. Open Mendix Studio Pro
  2. Navigate to Marketplace (accessible from the top menu)
  3. Search for "HarmonyOS NEXT App Builder"
  4. Click "Download" and follow the installation prompts

Configuration

Initial Setup

  1. Register for a Huawei developer account at developer.huawei.com if you don't have one
  2. Log in to  AppGallery Connect  and create a new application
  3. Note your App ID and package name for later use

App Configuration

  1. Add the extension startup parameters in the properties of Studio Pro  (“...studiopro.exe" --enable-extension-development)
  2. Open your Mendix project in Studio Pro
  3. Access the HarmonyOS NEXT Builder from extentions menu
  4. Fill in the App Info section with details matching your AppGallery application:
    • App Name
    • Package Name (must match the one registered in AppGallery)
    • Version Code
    • PWA APP URL
  5. Select required permissions for your application (camera, location, storage, etc.)

Signing Configuration

  1. Create a signature in the Signing step (e.g., "debug" for development or "release" for production)
  2. Go to AppGallery Connect and create a certificate
  3. Create a Profile in AppGallery Connect
  4. Download both certificate and Profile files
  5. Place these files in your project's configuration directory
  6. Rename them to match your signature name (e.g., "debug")
  7. Refresh signature

Building and Deployment

  1. Click "Generate Package" to create the installation file
  2. Connect your HarmonyOS NEXT device to your computer via USB (ensure developer mode is enabled on the device)
  3. Select your connected device from the list
  4. Click "Install" to deploy directly to the device

Publish Application

Publish Application (App Bundle)

Releases

Version: 0.3.0
Framework Version: 10.24.0
Release Notes: ✨ Major Update Unified Package: Combined App Wrapper and App Builder into single installation for streamlined development. ✨ New Features 1. Bluetooth BLE/SPP: Connect to low-energy and classic Bluetooth devices 2. DeepLink: Custom URL schemes and app navigation 3. NFC: Tag reading/writing and data exchange
Version: 0.1.1
Framework Version: 10.24.0
Release Notes: New Features - HMS Push: Added HMS Push notification support - Local Notification: Implemented local notification functionality - Set Badge Number: Added app icon badge number management - Multi-file Sharing: Enhanced sharing capabilities to support multiple files simultaneously - Multi-file Printing: Added batch printing functionality for multiple documents - Get OS Type: Added functionality to retrieve operating system type information
Version: 0.1.0
Framework Version: 10.18.0
Release Notes: HarmonyOS NEXT Wrapper * Version 0.1.0 We are pleased to announce the release of the HarmonyOS NEXT Wrapper module, That is based on a native wrapper for PWA and provided a collection of JavaScript actions that enable seamless access to native mobile device functionalities within your Mendix applications. * Module Overview This module is designed to bridge the gap between Mendix applications and native mobile device features, allowing developers to leverage device capabilities with simple JavaScript actions. This module enhances the user experience by providing access to hardware and system functionalities typically only available in native applications. * Key Features The module includes the following capability groups: 1. AmbientLight Subscribe and unsubscribe to ambient light sensor data 2. Clipboard Copy text to clipboard Paste from clipboard Clear clipboard content 3. FileSystem Select files from device storage 4. Print Print files Print web pages 5. Proximity Subscribe and unsubscribe to proximity sensor events 6. QRCode QR code scanning capabilities 7. Share Share file documents Share text content 8. Upload Take photos using device camera Record videos Upload files from device Camera type selection 9. Vibration Start device vibration Stop device vibration Configure vibration usage types * Implementation Each JavaScript action is thoroughly documented and ready to use in your Mendix projects. Simply import the module and call the appropriate actions where needed in your application. * Requirements Mendix Studio Pro 10.18.0 or higher HarmonyOS NEXT Mobile application with proper permissions configured * Getting Started After importing the module, refer to the included documentation for usage examples and parameter descriptions for each JavaScript action.