qwik icon indicating copy to clipboard operation
qwik copied to clipboard

feat: Add device's homescreen

Open vanvuongngo opened this issue 1 year ago • 2 comments

What is it?

  • [x] Feature / enhancement

Description

You have to add a manifest.json file to use a Qwik project like a native mobile app. That's all to show Qwik in fullscreen when added to the device's homescreen.

Use cases and why

  • Prepared for PWA

Checklist:

  • [x] My code follows the developer guidelines of this project
  • [x] I have performed a self-review of my own code
  • [ ] I have made corresponding changes to the documentation
  • [ ] Added new tests to cover the fix / functionality

Mobile context menu in the browser to add a Qwik App to the device's homescreen:

Icon on device's homescreen:

Before - Without a manifest a Qwik App shows the browser window:

After - With a manifest.json it shown like a native app:

Reference see https://developer.mozilla.org/en-US/docs/Web/Manifest

vanvuongngo avatar Oct 16 '22 15:10 vanvuongngo

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

stackblitz[bot] avatar Oct 16 '22 15:10 stackblitz[bot]

I think with the url to the manifest we'll need to prefix it with /, so that all pages in subdirectories will reference the right location. Thanks!

adamdbradley avatar Oct 19 '22 21:10 adamdbradley

Thanks a lot!

manucorporat avatar Oct 21 '22 07:10 manucorporat

Thank you for the merge :)

vanvuongngo avatar Oct 21 '22 11:10 vanvuongngo