You made a canvas game in plain HTML/JS (or exported one from Construct, Phaser, GDevelop or Godot's web export). It runs fine in Chrome. You wrap it in an Android WebView, install the APK and... the sound is gone, the screen is the wrong way round, and progress disappears.
Here are the seven problems I see most often while working on an HTML-to-APK tool, and how to fix each one in your own code.
1. Audio is silent until the first tap
Android WebView follows the browser autoplay rules. An AudioContext created on load starts suspended .
const ctx = new AudioContext ( ) ; window . addEventListener ( 'pointerdown' , ( ) => ctx . resume ( ) , { once : true } ) ;
Enter fullscreen mode
Exit fullscreen mode
Do the same for <audio> elements: call play() inside the first user gesture, never from a timer.
2. Asset paths that start with /
/assets/sprite.png works on a web server and fails inside an app, where the page is not at the domain root. Use relative paths ( assets/sprite.png ).…