目录
Atomic Service Introduction
Characteristics and Use Scenarios of Atomic Services
Basic Knowledge of an Atomic Service Bundle
Developing an Atomic Service
Overview
ASCF Toolkit (CLI Tool)
Creating an ASCF Project
Importing Mini Program Resources
Code Editing
Compiling an Atomic Service
Building an Atomic Service
ASCF Assistant (VS Code)
Creating an ASCF Project
Converting a Mini Program Project to an Atomic Service
Content Risk Control Service
Authorization
Developing an Immersive Page
Customizing a Tab Bar
On-Demand Injection and Render-Time Injection
Immediate Update
Data Prefetch
Launching an ASCF Atomic Service with Parameters
Parsing Want Parameters
Shared Data Storage Between Atomic Services and Widgets
Configuring a Signature
Running and Debugging an Atomic Service
Releasing an Atomic Service
Integration of Privacy Policy Hosting Service
Integration of Open Capabilities
Development on a Third-Party Platform
Network Access
Package Splitting
Preloading
Asynchronous Package Splitting
Local Runtime Configuration of DevEco Studio
Canvas
Data Storage
File System
Media File Access
Obtaining Page Node Information
Obtaining User Information Associated with a HUAWEI ID
Obtaining Location Information
Pushing Information to Users
Integrating Payment Services
Developing the web-view Component
Implementing Navigation
Obtaining the Atomic Service Link
Opening an Atomic Service in Half-Screen Mode
ASCF API Compatibility Guide
Atomic Service Adaptation Guide for HarmonyOS 4 and Earlier Versions
What should I do if the ASCF template cannot be found in DevEco Studio?
What should I do if an error message is displayed during debugging of my ASCF atomic service in DevEco Studio?
What should I do if the ASCF engine is not automatically updated to the latest version?
What should I do if syntax checking and prompts for ASCF code are not supported?
What should I do if hot reload fails to enable in DevEco Studio?
What should I do if the error message "Output path is error" is displayed during conversion of the mini program source code?
What should I do if the path is unavailable?
What should I do if the error message "ERROR: build-profile.json5 file not found" is displayed?
What should I do if the error message "ERROR: XXX contains error, please check it." is displayed?
What should I do if the error message "TypeError: Cannot read properties of undefined (reading 'hxml')" is displayed?
What should I do if the error message "Failed to execute 'createElement' on 'Document'" is displayed?
What should I do if an error occurs in the HSP dependency check?
What should I do if asynchronously referenced components from the current package or main package cannot be displayed?
What should I do if the error message "ERROR: unknown option '--serve'" is displayed?
What should I do if DevTools installation fails?
What should I do if an error occurs due to duplicate values of the pages field in the app.json file?
What should I do if sourcemaps are not generated during uni-app compilation?
How can I download and install Huawei Quick App Loader?
What should I do if the error message "error: Failed to install the HAP or HSP because the dependent module does not exist." is displayed?
What should I do if require stops working?
What should I do if an error occurs at runtime when has.login is called?
What should I do if the input parameter is empty due to undefined properties when customizing a component?
What should I do if an atomic service fails to launch when hot reload is enabled?
How can I handle Emulator runtime issues?
What should I do if an error message is displayed due to low runtime version during debugging?
How can I resolve unexpected behavior caused by duplicate marker IDs in the map component?
How can I troubleshoot failures when calling file-writing APIs?
How can I resolve unresponsive taps when navigating to a subpackage page?
How can I handle slow cold start of an ASCF atomic service?
How can I resolve canvas drawing issues?
Why are the obtained parameters incomplete when launching an ASCF atomic service with parameters containing a question mark (?)?
What should I do if an error occurs when EventChannel is used for communication during page startup using the has.navigateTo API?
What should I do if the video component is covered by the page content during fullscreen playback?
How can I develop atomic service skills using the uni-app/Taro framework?
What should I do if error code 9 is returned when the .app package of the ASCF atomic service fails to be uploaded to AppGallery Connect?
What should I do if a white screen or an exception occurs after mini program code is converted to ASCF code?
What should I do if modifications to JS or JSON files do not take effect on hot reload?
What should I do if a package fails to be installed using cloud debugging?
What should I do if exceptions occur during the conversion from uni-app to ASCF?
What should I do if the width setting of the button component does not match its actual width?
What are the differences between ASCF and mini programs?
Developing Your First Atomic Service
Creating an Atomic Service Project
Generating Atomic Service Icons
Building an Atomic Service Page
Creating an Atomic Service Widget
Running an Atomic Service on a Real Device
Preparing for Atomic Service Development
Sub-packaging
Preloading
Intra-Module Page Routing
Inter-Module Page Routing
Using an Atomic Service Link for Atomic Service Redirection
Using a Basic URL QR Code for Atomic Service Redirection
Starting Other Atomic Services
Atomic Service Update
Service Widget Development
Network Management Overview
HTTP Data Request
Network Connection Management
mDNS Management
WebSocket Connection
Configuring Server Domain Names
Network Management Acceleration Service
Persisting Preferences Data
Accessing Application Files
Preview Kit
Media
AVSession
Camera
Selecting Media Assets Using Picker
Image Development Overview
Image Decoding
Image Encoding
Developing Application Windows
Sensor Service
Sensor Overview
Sensor Development
Vibrator Overview
Vibrator Development
Bluetooth Setting Development
Advertising Development
GATT Development
NFC Tag Read/Write Development
HCE Development
Contacts Service
Web Component Overview
Developing the AtomicServiceEnhancedWeb Component
AtomicServiceEnhancedWeb Reference
Upgrading ArkWeb to AtomicServiceEnhancedWeb
Configuring Business Domain Names
Scenario-based Vision
Intents Kit
Agent Framework Kit
About This Kit
Integration Process
Qualifications Requirements for Developers
Open Data Overview
Applying for Health Service Kit
Configuring the Client ID
Managing User Authorization
Aggregation Query of Health and Fitness Sample Data
Reading Real-Time Activity Rings Data
Permission Description
Daily Activities
Applying for Formal Scopes
Personal Data Processing Information
Specifications for Using Logos
Cloud Foundation Kit
Key Management
Online Authentication
Using the Crypto Framework
Using the Certificate Framework
User Authentication Kit
About This Kit
Service Quota
Enabling Device Security Kit
Generating a JWT Based on a Service Account
DeviceVerify
Enhanced System Integrity Check
System Integrity Check
URL Check
Unified Risk Control Credential
RiskControlEngine
Location Security Verification
Verifying the Anonymous Certificate Chain
Verifying the Signature
Digital Shield Service
Supported Countries/Regions
Weather
Localization
Continuous Task
Development of Application Event Logging
HiLog Development
ArkTS Common Library
Automated Test
About This Kit
Management Rules for Using the Sign-in Capability of Account Kit
Requesting Scopes
Configuring Signing Information and Adding a Fingerprint
Configuring the Client ID
Sign-In
Overview
Overview About Obtaining the Avatar and Nickname
Obtaining the Avatar and Nickname Through the Relevant API
Obtaining the Avatar Through Scenario Fusion Kit
Obtaining the Mobile Number
Obtaining the Shipping Address
Obtaining the Invoice Title
Obtaining the Risk Level
Overview
Following the Device's Youth Mode Status
Enabling the Youth Mode Within the Atomic Service
(Recommended) Disabling the Atomic Service's Youth Mode
Disabling the Device's Youth Mode
Adjusting Youth Mode Settings
Account Kit Notification Events
FAQs
Personal Data Processing Information
About This Kit
Preparations
Enabling Service Notifications and Selecting a Subscription Template
Performing Self-Service Testing and Analysis
Initiating an Account-based Subscription Request
Pushing Account-based Subscription Notifications
Pushing Account-based Service Updates Messages
Sharing
About This Kit
Preparations
Barcode Scan by Default UI
Recognizing Barcodes in Local Images
Recognizing Barcodes in Image Data
Generating a Barcode Image from Text
Generating a Barcode Image from a Byte Array
FAQs
Location
Maps
Payment
IAP Kit
About This Kit
Preparations
Overview
Banner Ads
Native Ads
Rewarded Ads
Interstitial Ads
Roll Ads
Real-Time Bidding
FAQs About Petal Ads Publisher Service
About This Kit
Service Updates Authorization Code Button
Atomic Service Sharing Button
Feedback and Complaint Button
About This Kit
Update on AppGallery
Solution Design
Development Guidelines
Solution Design
Development Guidelines
Releasing an Atomic Service
Atomic Service Ecosystem Operation Guidelines
Atomic Service Naming Guidelines
Platform Capability Adaptation
Integration of Privacy Policy Hosting Service
Integration of Open Capabilities
Development on a Third-Party Platform