HomeDocs
Skip to main content

Foundational Capability Description

Virtual Address

A virtual address is an address generated by mapping the real files on a user's mobile device.

To safeguard user path privacy and prevent unauthorized access to user files, all addresses accessible within the context of small applications are represented as virtual addresses.

Example:
https://[appid].miniapp.transsion.com/index.html

Local Temporary Files

Local temporary files can only be generated through specific API calls and cannot be directly written to with content. These files are valid only within the current lifecycle and may not persist after a restart. To ensure availability without re-downloading in subsequent launches, local temporary files can be converted into local cache files or local user files using the FileSystemManager.saveFile() or FileSystemManager.copyFile() interfaces.

⚠️ Temporary file paths are also virtual addresses, for instance:
https://[appid].miniapp.transsion.com/temp_data/xxx.png

Privacy agreementDeveloper agreementcontact us: developer_service.mi@transsion.com © 2024 MiniApp. All Rights Reserved.