tencent cloud

Feedback

Preconfigure offline mini programs

Last updated: 2024-06-27 10:50:02
    Offline mini programs are embedded within the host app. You need to download the mini program package from the console and import it into the host app project, bundling it with the app. Users can open and run these mini programs without downloading them from the backend, even without an internet connection.

    Steps

    1. Download the required mini program from the console.
    
    2. Copy the downloaded mini program package to a custom assets directory. Follow strict naming conventions and do not change it.
    Naming conventions: {miniAppId}_{miniAppVersion}.apkg
    
    3. Specify the assets directory containing the offline mini programs in the SDK initialization configuration.
    

    Notes

    Offline mini programs must follow the standard binding and publishing process. Only published miniprograms can be downloaded as offline packages;
    Offline mini programs adhere to version management logic, including new releases, version rollbacks, and deprecations. If the online version differs from the preloaded version, the client will fetch the online version;
    If a mini program is deprecated, the corresponding offline mini program in the app will also become unusable.
    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support