Service Introduction

Dynamic Ability is a service in which AppGallery Connect implements dynamic loading based on the Android App Bundle technology. For apps integrated with the Dynamic Ability SDK, features or language packages can be dynamically downloaded from AppGallery as required, reducing the consumption of network traffic and device storage space.

Key Functions

Dynamically loading features and language packages

The Dynamic Ability SDK interacts with AppGallery to dynamically load features and language packages for an app based on user requests. In addition, you can register listeners to listen to the loading status. Currently, the Dynamic Ability SDK supports mobile phones, Vision products, and speakers with screens.

How the Service Works

App Bundle is a new packaging format provided by Android. After you upload the AAB file packaged through App Bundle to AppGallery, the platform splits the package into multiple APKs based on three dimensions: language, screen density, and ABI architecture. When a user downloads an APK, AppGallery delivers the one suitable for the user device based on the device language, screen density, and ABI architecture. This reduces the consumption of storage space and network traffic on the user device without affecting the app's functions.

Based on the App Bundle technology, AppGallery Connect provides the Dynamic Ability service. Through the Dynamic Ability SDK, you can develop features that are not mandatory for your app to function properly into dynamic features. When users download such an app for the first time, only the basic features of the app are downloaded; the dynamic features are only downloaded when needed.

Platform Support

Level-1 Category

Level-2 Category

Supported

Client SDK

Android

iOS

Web

Quick app

Server SDK

Java

Node.js

REST API

Third-party library (implemented by a third party)

Unity

Cocos

Implementation Process

No.

Step

Details

1

Getting Started

To implement Dynamic Ability, you need to create an Android project that contains dynamic feature modules and integrate the Dynamic Ability SDK into your app. For details, please refer to Getting Started.

2

Initializing the Dynamic Ability SDK

Initialize the Dynamic Ability SDK when your app is started.

3

Developing the Dynamic Loading Function

When the app is running, provide an entry for downloading and installing dynamic features and call APIs of the Dynamic Ability SDK to dynamically load features or language packages.

4

Releasing an App

Upload the AAB file of your app to AppGallery Connect and submit it for release.

unifiedSearch.search
DOC.searchTips