Skip to content

Minigame Running Environment ​

Minigames run on a variety of platforms: iOS (iPhone/iPad) APP Client, Android APP Client, HarmonyOS APP Client, PC Client, Mac Client, and the Hello OpenPaaS developer tool used for debugging.

Script Execution Environment per Platform ​

The script execution environment differs on each platform:

  • On iOS: the JavaScript code of the minigame logic layer runs in JavaScriptCore.
  • On Android: the JavaScript code of the minigame logic layer runs in V8.
  • On HarmonyOS: the JavaScript code of the minigame logic layer runs in ArkCompiler.
  • On the developer tool: the JavaScript code of the minigame logic layer runs in NW.js.

Platform Differences ​

Although these runtime environments are very similar, there are still some differences:

1.Inconsistent JavaScript syntax and API support: Syntax: developers can avoid these issues by enabling the ES6-to-ES5 conversion feature.

2.Behavior standard: The developer tool is for debugging only; the final behavior is determined by the client.