Skip to content
This repository has been archived by the owner on May 3, 2019. It is now read-only.

PWA template don't work #13

Closed
IgorDePaula opened this issue Oct 18, 2017 · 10 comments
Closed

PWA template don't work #13

IgorDePaula opened this issue Oct 18, 2017 · 10 comments

Comments

@IgorDePaula
Copy link

Software version

Quasar: 0.14.6
OS: ubuntu 16.04
Node: 6.3.1
NPM: 3.10.3
Browsers: google chrome 60.0.3112.78 (64 bits)
iOS:
Android:
Any other software related to your bug:

What did you get as the error?

The service worker dont install on localhost.

What were you expecting?

The service worker dont install on localhost.

What steps did you take, to get the error?

Only install the template, run it, and apply the light house.

The pwa template has any special care?

selecao_058

@rstoenescu
Copy link
Member

rstoenescu commented Oct 19, 2017

A PWA needs to be run on a webserver under HTTPS. Build then deploy. The scores are close to 100 when generating the template and running in such environment.

@IgorDePaula
Copy link
Author

IgorDePaula commented Oct 19, 2017 via email

@rstoenescu
Copy link
Member

What I am telling is that the PWA requires https to install and work.

Running quasar dev won't install any web worker as that is soly for developing the UI.
What you need is to build the app then deploy on a https webserver.

Please read about PWAs to understand how they work.

@IgorDePaula
Copy link
Author

IgorDePaula commented Oct 19, 2017 via email

@rstoenescu
Copy link
Member

What exactly is the issue you are encountering? Give a full detailed description of what commands you type and what you expect the result to be. Thanks.

@IgorDePaula
Copy link
Author

I expected the least. start the template and everything provided work. I only run:

quasar init pwa folder
cd folder
npm install
npm run dev

But the service worker not install, and not throw errors. It's like a common template, without the features of pwa.

@rstoenescu
Copy link
Member

The service worker does NOT install while developing, because you do not need it. It also gets in the way with HMR, just to name one problem. Service worker is only installed on production build. Do a production build, deploy to a server with HTTPS and there you have it.

@IgorDePaula
Copy link
Author

IgorDePaula commented Oct 19, 2017 via email

@rstoenescu
Copy link
Member

Not sure I understand your question. If you are referring to your app working as a pwa when built and deployed, then "yes". Develop it like any regular app and when deployed it becomes PWA.

@IgorDePaula
Copy link
Author

IgorDePaula commented Oct 19, 2017 via email

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

No branches or pull requests

2 participants