All Products
Search
Document Center

SuperApp:Publish a miniapp

Last Updated:Sep 16, 2025

After developing and packaging a miniapp in the Cross-platform DevOps of SuperApp, you can go to the Application Open Platform to publish it.

Upload a version

  1. Log on to the Application Open Platform console.

  2. upload a version, For more information, see Build and upload a version.

Publish a version

  1. Submit a request to publish a version. For more information, see Submit a request to publish a version.

  2. You can publish the version in two ways: canary release and official release. Canary release is an optional process. You can select canary release or official release based on your business requirements. For more information, see Publish a version.

Preview

Note

To open a miniapp by scanning its QR code, your superapp must support the QR code scanning feature.

If your superapp is integrated with the QR code scanning feature, you must add the following logic before you can open a miniapp by scanning its QR code.

  1. Scan the QR code and determine whether it can display the link to download the miniapp.

  2. Download the miniapp and retrieve the appid of the miniapp from the download link.

  3. After downloading the miniapp, call the following API operations provided by the miniapp container to specify the appid of the miniapp, the download path for the miniapp installation file, and other parameters used to install the miniapp.

    • Android:

      UniMPReleaseConfiguration uniMPReleaseConfiguration = new UniMPReleaseConfiguration();
      uniMPReleaseConfiguration.wgtPath = filePath;
      DCUniMPSDK.getInstance().releaseWgtToRunPath(appid, uniMPReleaseConfiguration, callBack)
    • iOS

      [DCUniMPSDKEngine installUniMPResourceWithAppid:appid resourceFilePath:filePath password:nil error:&error]
  4. After installing the miniapp, call the following API operations to start it.

    • Android:

      public interface IEmasMiniAppContainer {
        /**
        * Start the miniapp.
        * @param context {@link Context}
        * @param appId miniapp appId
        * @param openConfiguration {@link UniMPOpenConfiguration}
        * @return {@link IUniMP}
        */
        IUniMP openMiniApp(Context context, String appId, UniMPOpenConfiguration openConfiguration);
      }
    • iOS:

      @interface DCUniMPSDKEngine : NSObject
        
        
      /// Start the miniapp.
      /// @param appid appid
      /// @param configuration The configuration information of the miniapp
      /// @param completionBlock The block to be executed to invoke the callback
      + (void)openUniMP:(NSString *)appid
          configuration:(DCUniMPConfiguration *)configuration
              completed:(DCUniMPCompletionBlock)completionBlock;
              
              
       @end