phonebook
phonebook copied to clipboard
feat(service worker): add service worker functionality
resolves #87
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
Preview Environment ready at https://pr-101.demo-phonebook.me
There is still a bug: https://github.com/angular/angular/issues/23613
Caused by us changing the environment variables in the index.html, possible solutions:
- remove the index.html hash from ngsw.json
- recalculate the hash.
@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
@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.
Will test it after your answer :)
I already described what to test here
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.)
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.
@DanielHabenicht does the page needs a initial connection for working offline afterwards?
Does the page load if you are offline or not?
Not evrything can be loaded properly:
Rooms are not loading, so no content is shown if offline.
That's ok, dynamic content can't be preloaded. But everything you already searched for will be there.
@DanielHabenicht does the page needs a initial connection for working offline afterwards?
Does the page load if you are offline or not?
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
/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 $localize
being runtime or AOT compiled.