Skip to content

Minigame Runtime 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 HelloPinK developer tool used for debugging.

Script Execution Environment on Each Platform ​

The script execution environment differs across platforms:

  • 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.
  • In the developer tool: the JavaScript code of the minigame logic layer runs in NW.js.

Platform Differences ​

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

1.Inconsistent JavaScript syntax and API support: In terms of syntax: developers can work around this 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.