目录

What are the differences between ASCF and mini programs?

Framework

ASCF is a framework for HarmonyOS atomic service development. It depends on the ASCF runtime to load resource files compiled from ASCF source code and run atomic service projects.

The global object of ASCF APIs is defined as Harmony Atomic Service (HAS).

File types of ASCF source code:

Framework differences:

Component

API

Principles:

Email address: atomicservice@huawei.com

Email subject: [Request for ASCF APIs]-[Atomic service name]-[App ID]-[Developer ID] (For details about how to query the app ID, see the following information.)

Email content: request in detail

Basic Information

Description

Atomic service name

Name of the atomic service to be released on AppGallery.

APP ID

To obtain the application ID, log in to HUAWEI Developers and choose My Projects > Settings > Regular > App > APP ID.

Developer ID

HUAWEI ID used by you for debugging. To obtain the HUAWEI ID, log in to HUAWEI Developers and choose My Projects > Settings > Regular > Developer > Developer ID.

Key API differences:

API

Suggestion

has.getAccountInfoSync

App ID can be obtained from AppScope or the bundle name in app.json5.

has.getClipboardData

This API is not supported currently due to the strict control over the clipboard permission.

has.createInnerAudioContext

This capability is under provision.

has.getRecorderManager

This capability is under provision.

has.openDocument

This capability is under provision.

has.getMenuButtonBoundingClientRect

This capability is under provision.