Publish to vivo Mini Games

    • Download the and vivo Mini Game Engine and install it on your Android device (recommended Android Phone 6.0 or above)

    • Install or above, globally:

      Note: after installing nodejs, you need to note whether the npm source address is https://registry.npmjs.org/

    • Install globally:

      If vivo-minigame/cli installation fails, it may be caused by too low version of nodejs. Please check the version of node and upgrade.

    Build Options

    For some general build options of platforms, please refer to the General Build Options documentation for details.

    If you don’t check the Keystore, you need to configure the signature files certificate.pem path and private.pem path, where you build a rpk package that you can publish directly. The developer can configure two signature files by using the search icon button to the right of the input box.

    There are two ways to generate a signature files:

    • Generated by the New button after the certificate.pem path in the Build panel.

    There are three ways to run rpk on your phone:

    • Method One

      Click the Run button at the bottom right of the vivo-mini-game build task in the Build panel and wait for the QR Code interface to be generated:

      play

      Then open the Quick App & vivo Mini Game Debugger that was installed before on your Android device. Click the Scan code install button to scan the QR Code to open the rpk.

    • Copy the generated mini game rpk file (located in the dist directory) to the internal storage directory of the mobile phone.

      Open the Quick App & vivo Mini Game Debugger that has been installed before on the Android device, click Local Install, then find the rpk file from the internal storage directory of your mobile phone and select Open.

      vivo-instant_native_install

    • Method Three

      Specify to the editor installation directory in the command line, and execute the command npm run server to generate URL and QR code using the vivo Mini Game Packer Commands.

      Then open the Quick App & vivo Mini Game Debugger that was installed before on your Android device.

      Finally, click the Scan code install button to copy the URL generated in the first step to the browser, and then directly scan the QR code on the web page to open the rpk.

    Subpackage Loading

    The subpackage loading of vivo Mini Games is similar to WeChat Mini Games. Please refer to the Mini Game Subpackage documentation for details.

    The part of vivo mini games that exceed the package size limit must be downloaded through the network.

    Reference documentation