phonebook icon indicating copy to clipboard operation
phonebook copied to clipboard

feat(service worker): add service worker functionality

Open DanielHabenicht opened this issue 5 years ago • 26 comments

resolves #87

DanielHabenicht avatar Jul 18 '19 14:07 DanielHabenicht

Do not merge till at least 29.07 in order to auto uninstall the old service worker in our company.

DanielHabenicht avatar Jul 18 '19 14:07 DanielHabenicht

Preview Environment ready at https://pr-101.demo-phonebook.me

mmsgithub-ci avatar Dec 02 '19 12:12 mmsgithub-ci

Preview Environment ready at https://pr-101.demo-phonebook.me

mmsgithub-ci avatar Dec 02 '19 13:12 mmsgithub-ci

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:

  1. remove the index.html hash from ngsw.json
  2. recalculate the hash.

DanielHabenicht avatar Dec 03 '19 09:12 DanielHabenicht

@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 🎉 .

DanielHabenicht avatar Dec 03 '19 13:12 DanielHabenicht

Preview Environment ready at https://pr-101.demo-phonebook.me

mmsgithub-ci avatar Dec 03 '19 13:12 mmsgithub-ci

Preview Environment ready at https://pr-101.demo-phonebook.me

mmsgithub-ci avatar Dec 03 '19 14:12 mmsgithub-ci

Preview Environment ready at https://pr-101.demo-phonebook.me

mmsgithub-ci avatar Dec 03 '19 14:12 mmsgithub-ci

@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.

VanLampe avatar Dec 04 '19 10:12 VanLampe

/azp run T-Systems-MMS.phonebook-preview

DanielHabenicht avatar Dec 05 '19 15:12 DanielHabenicht

Azure Pipelines successfully started running 1 pipeline(s).

azure-pipelines[bot] avatar Dec 05 '19 15:12 azure-pipelines[bot]

Preview Environment ready at https://pr-101.demo-phonebook.me

mmsgithub-ci avatar Dec 05 '19 15:12 mmsgithub-ci

@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 :)

mschwrdtnr avatar Dec 08 '19 15:12 mschwrdtnr

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.

DanielHabenicht avatar Dec 09 '19 16:12 DanielHabenicht

/azp run T-Systems-MMS.phonebook-preview

DanielHabenicht avatar Dec 09 '19 16:12 DanielHabenicht

Azure Pipelines successfully started running 1 pipeline(s).

azure-pipelines[bot] avatar Dec 09 '19 16:12 azure-pipelines[bot]

Preview Environment ready at https://pr-101.demo-phonebook.me

mmsgithub-ci avatar Dec 09 '19 16:12 mmsgithub-ci

@DanielHabenicht does the page needs a initial connection for working offline afterwards?

Not evrything can be loaded properly: image

Rooms are not loading, so no content is shown if offline.

VanLampe avatar Dec 10 '19 06:12 VanLampe

@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: image

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 avatar Dec 10 '19 08:12 DanielHabenicht

@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

VanLampe avatar Dec 10 '19 09:12 VanLampe

Can you send me some more information via chat?

DanielHabenicht avatar Dec 10 '19 10:12 DanielHabenicht

@T-Systems-MMS/phonebook-developers ping

DanielHabenicht avatar Dec 17 '19 16:12 DanielHabenicht

/azp run T-Systems-MMS.phonebook-preview

DanielHabenicht avatar Dec 18 '19 09:12 DanielHabenicht

Azure Pipelines successfully started running 1 pipeline(s).

azure-pipelines[bot] avatar Dec 18 '19 09:12 azure-pipelines[bot]

Preview Environment ready at https://pr-101.demo-phonebook.me

mmsgithub-ci avatar Dec 18 '19 10:12 mmsgithub-ci

Blocked by Angular i18n, depending on $localize being runtime or AOT compiled.

DanielHabenicht avatar Mar 26 '20 22:03 DanielHabenicht