Skip to content
This repository has been archived by the owner on Oct 12, 2021. It is now read-only.

Push doesn't work when build #172

Open
mwent-cray opened this issue Jun 22, 2017 · 3 comments
Open

Push doesn't work when build #172

mwent-cray opened this issue Jun 22, 2017 · 3 comments

Comments

@mwent-cray
Copy link

mwent-cray commented Jun 22, 2017

After running:

ng build --prod push doesn't work
ng build --aot --prod push doesn't work
When running:
ng serve --prod it works
ng serve --aot --prod doesn't work

So for the serve it seems like --aot breaks NgServiceWorker/push options
For build it doesn't work at all :/

ng serve --prod ng serve --prod --aot ng build --prod ng build --prod --aot
1.0.0-beta.15 𐄂 𐄂
1.0.0-beta.16 𐄂 𐄂 𐄂
@BorntraegerMarc
Copy link

It works flawlessly for me... Using v. 15

@mwent-cray
Copy link
Author

I'm running 1.0.0-b.16

@mwent-cray
Copy link
Author

mwent-cray commented Jun 22, 2017

Just tested with 1.0.0-b.15 it fixed my ng serve --aot --prod issue. But my ng build --prod (--aot) won't work for some reason :/
Eventhough the front & backend show push registration worked. Where the frontend can print the registration as text containing the endpoint and authentication. And the backend shows the same string as the frontend :/ Rather weird

Edit: In DevTools in Chrome and Service worker viewer in Firefox (about:debugging#workers) the emulate push doesn't work either when ng build is run.

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