Packaging an HTML5 Game into a Quick Game

  • App Name: app name, which corresponds to the name field in the manifest.json file.
  • Package Name: app package name, which corresponds to the package field in the manifest.json file.
  • package: quick game package name. Once the game is released, the package name cannot be changed. Otherwise, the game cannot be upgraded.
  • name: quick game name.
  • versionName: quick game version name. The value must be increased by 1 upon upgrade. For example, if the name of the source version is 1.0.0, the name of the target version must be 2.0.0.
  • versionCode: quick game version number. The value must be increased by 1 upon upgrade. For example, if the number of the source version is 1, the number of the target version must be 2.
  • icon: quick game logo used in a shortcut icon created on the home screen. Replace logo.png with the HTML5 game icon.
  • minPlatformVersion: minimum platform version with which an app is compatible, which functions like the Android API level. You are advised to set the platform to the latest version, for example, version 1070, to avoid incompatibility.
{“package”: “com.huawei.quickgamedemo”,“name”: “QuickGameDemo”,“versionName”: “1.0.0”,“versionCode”: 1,“icon”: “/Common/logo.png”,“minPlatformVersion”: 1070,“features”: [{“name”: “system.prompt”},{“name”: “service.pay”},{“name”: “service.account”}],“permissions”: [{“origin”: “*”}],“config”: {},“router”: {“entry”: “Hello”,“pages”: {“Hello”: {“component”: “hello”}}},“display”: {“titleBar”: false,“fullScreen”: true}}
  • src: URL of the HTML5 game.
  • fullscreendirection: game orientation. Both landscape and portrait orientations are supported.
  • jumppolicy: URL redirection policy within the game. If ads are integrated into the game, you are advised to set this parameter to browser and set the value of multiwindow to true.
  • allowthirdpartycookies: indicates whether cross-domain cookies transfer is supported. The default value is false. If a web page needs to access cookies across domains, for example, in the scenario of sign-in with a third-party account, set this parameter to true.
  • trustedurl: Set this parameter if the launch page is different from the loading page displayed after a user has successfully signed in.

--

--

--

https://github.com/AppGalleryConnect

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Useful JavaScript Tips — Objects, Methods, and URLs

IndexedDB Manipulation with Dexie — CRUD Operations

New Features in Create React App 3.3

Getting Started with Mobile Development with NativeScript React

A crash course on Serverless with Node.js

Highlights of JavaScript — Math Expressions and Prompts

ServiceWorker: Lifecycle, Update, and Notification

How to Remove All Child Elements of a DOM Node in JavaScript?

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Mayism

Mayism

https://github.com/AppGalleryConnect

More from Medium

CS371p Spring 2022: Week 4

CS373 Spring 2022: Hassan Khan — Week 9

OpenBots Launches Citizen Developer Jumpstart Program

Two weeks of using a different approach, daily work arrangement and trying to beat the…