Add Progressive Web App (PWA) template files for web_demo #5333
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds the minimal files for converting the
web_demo
into a Progressive Web App (PWA).I think this might be of interest for mobile developers, as both Android and iOS have guides for how to publish a Progressive Web App to their stores.
A PWA let's you run your application as a standalone, offline app. This will work in both local sites for testing (screenshot below) as well as sites hosted on github pages (ex. https://ktmeaton.github.io/egui_demo_app/ is a PWA that can be installed to your computer or phone).
Add to home screen
->Install
.Share
->Add to home screen
* On desktop, the user might need to satisfy engagement criteria, before the option becomes available.
On desktop the app will then show up in the system tray alongside other programs. On mobile, it will appear in the application tray just like you had installed it from the Play Store/App Store.
I couldn't find any
egui
docs/examples about this topic. And I had to fuse several blogs and tutorials to get it to work. So I thought there's a chance other people might be interested. If this is redundant, or you're not interested, please feel free to close!