feat(service worker): add service worker functionality#101
feat(service worker): add service worker functionality#101DanielHabenicht wants to merge 13 commits intomasterfrom
Conversation
|
Do not merge till at least 29.07 in order to auto uninstall the old service worker in our company. |
|
Preview Environment ready at https://pr-101.demo-phonebook.me |
Service worker is not working correctly if schema is in it https://stackoverflow.com/questions/56520967/angular-service-worker-offline-caching-is-not-working-when-ive-deployed-in-serv
|
Preview Environment ready at https://pr-101.demo-phonebook.me |
|
There is still a bug: Caused by us changing the environment variables in the index.html, possible solutions:
|
This makes the service-worker work. Without it index.html would not be cached by the service worker
|
@mschwrdtnr @paule96 @marcuskrahl @FrankLambrette please have a look at the PR-Preview and look out for issues that might come from the service worker (outdated info, double network requests, if it is working offline, for both languages etc.) Please write back if any issues arise. If not we can merge and finally it will work for both English and German and completely offline 🎉 . |
|
Preview Environment ready at https://pr-101.demo-phonebook.me |
|
Preview Environment ready at https://pr-101.demo-phonebook.me |
|
Preview Environment ready at https://pr-101.demo-phonebook.me |
|
@DanielHabenicht could you please explain, how the page should work offline, so what should load and so on? If I set the network settings in chrome dev tools to offline, the page wont load any content anymore. |
|
/azp run T-Systems-MMS.phonebook-preview |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
Preview Environment ready at https://pr-101.demo-phonebook.me |
Will test it after your answer :) |
|
I already described what to test here
Everything should work as if you are online. Report back everything that does not work. |
|
/azp run T-Systems-MMS.phonebook-preview |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
Preview Environment ready at https://pr-101.demo-phonebook.me |
|
@DanielHabenicht does the page needs a initial connection for working offline afterwards? Not evrything can be loaded properly: Rooms are not loading, so no content is shown if offline. |
Does the page load if you are offline or not?
That's ok, dynamic content can't be preloaded. But everything you already searched for will be there. |
If I reload the page with connection set to offline, it is not loading. But if I dont reload, evrything exept the rooms is loaded fine |
|
Can you send me some more information via chat? |
|
@T-Systems-MMS/phonebook-developers ping |
| if (!this.store.selectSnapshot(AppState.serviceWorkerNotificationDisplayed)) { | ||
| if ('serviceWorker' in navigator) { | ||
| this.swUpdates.activated.subscribe(active => { | ||
| if (active.current) { |
There was a problem hiding this comment.
When should that be opened? Didn't got any message.
There was a problem hiding this comment.
should have opened! I will investigate. Good catch
There was a problem hiding this comment.
I got one dialog "Update your site" or something like..
|
/azp run T-Systems-MMS.phonebook-preview |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
Preview Environment ready at https://pr-101.demo-phonebook.me |
|
Blocked by Angular i18n, depending on |

resolves #87