New this build: support for web app install banners in Chrome for Android, tilemap editing tweaks, and bug fixes.
Web app install banners
For a while now Chrome for Android has supported 'Add to homescreen' to add a native-style app icon for a web app. This works well for Construct 2 games, especially since they can work offline. However it's quite a hidden option, requiring that the user knows about it and can find it in the browser menu to use it. Chrome for Android 42+ (currently beta) aims to solve this by showing a web app install banner with the app icon and an "Add to homescreen" button on the page itself, providing the page meets some requirements. Construct 2 now covers all the requirements to show this, except those beyond its control:
- You must serve your site over HTTPS (secure hosting). This is a good idea for many other reasons though, as the linked blog post describes, so you should be doing this anyway.
- The user visits your site twice over two separate days during the course of two weeks. (This is to prevent web apps spamming or otherwise annoying everyone with these banners.)
For testing purposes you can skip the second requirement by going to chrome://flags and enabling "Bypass user engagement checks" (#bypass-app-banner-engagement-checks). This will make Chrome show it every time you visit providing you have HTTPS hosting (and have Chrome 42+, and have exported with r201+).
In short, this is a nice way to enhance HTML5 exported games with automatic "add to homescreen" prompts without having to do anything if you're already using HTTPS hosting. Just remember to make sure you update your icons (in the 'Icons' subfolder of 'Files' in the project bar), since the prompt and the home screen icon use these for the app icon.