Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[HTML5] Export as Progressive Web App #48159

Merged
merged 1 commit into from Apr 27, 2021

Conversation

Faless
Copy link
Collaborator

@Faless Faless commented Apr 24, 2021

Adds possibility to export as a progressive web app.
Allows customizing base icons, display mode, orientation and offline page.

pwa_export

Which exports the the relevant required files and configures the service worker to cache them (images are generated from the project icon if not specified):

mypwa.144x144.png
mypwa.180x180.png
mypwa.512x512.png
mypwa.apple-touch-icon.png
mypwa.audio.worklet.js
mypwa.html
mypwa.icon.png
mypwa.js
mypwa.manifest.json
mypwa.offline.html
mypwa.pck
mypwa.png
mypwa.service.worker.js
mypwa.wasm

Resulting in a correctly installable PWA (tested on Chromium Linux, Chrome Android)

pwa_chrome

The resulting PWA works offline on desktop, but it doesn't seem to work Android. I'll be doing some more research. it also work on Android, but only once deployed to a real address, not from the debug server.

Based on both #47974 and #47386 .

A 3.x backport is available here: https://github.com/Faless/godot/tree/js/3.x_pwa_on_backport

Bugsquad edit: This closes godotengine/godot-proposals#1269.

@Faless Faless added this to the 4.0 milestone Apr 24, 2021
@Faless Faless marked this pull request as ready for review April 27, 2021 12:02
@Faless Faless requested review from a team as code owners April 27, 2021 12:02
Adds possibility to export as a progressive web app.
Allows customizing base icons, display mode, orientation and offline
page.
@akien-mga akien-mga merged commit 2a1f3c4 into godotengine:master Apr 27, 2021
@akien-mga
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add an option to export a HTML5 project as a Progressive Web App
2 participants