Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PWA (1PT) #61

Closed
2 tasks done
caebr opened this issue Apr 20, 2023 · 10 comments · Fixed by #158
Closed
2 tasks done

PWA (1PT) #61

caebr opened this issue Apr 20, 2023 · 10 comments · Fixed by #158
Assignees

Comments

@caebr
Copy link
Collaborator

caebr commented Apr 20, 2023

  • Web Manifest mit Icons etc. (Icon wird noch geliefert)
  • Installierbar (dummy Service Worker erstellen)

Muss nicht offline verfügbar sein

Abklärung mit STA-KomBE: Für die PWA wird das Wappen ohne Schriftzug verwendet (wie im Favicon), da der Schriftzug zu klein würde. Als Hintergrundfarbe wird eine Sekundär- oder Tertiärfarbe gewählt (nur übergeordnete kantonale Applikationen sollen die Primärfarben für die PWA verwenden).

Name: Evento
Kurzname: Evento
Beschreibung: Schulverwaltungsapplikation des Kantons Bern
Hintergrundfarbe: #3C505A (Aare)
Theme color: #3C505A (Aare)
Icon: Kanton Bern (negativ in Weiss)

Favicon: Kantonswappen wie bei BKD-Website → schon umgesetzt

@lmathys lmathys changed the title PWA PWA (1PT) Apr 27, 2023
@schefbi schefbi transferred this issue from bkd-mba-fbi/webapp-schulverwaltung Aug 22, 2023
@caebr
Copy link
Collaborator Author

caebr commented Oct 18, 2023

@fbufbi

  • Könntest du noch das Icon liefern?
  • Das Web Manifest verlangt nach einigen Infos (Name der App, Beschrieb, Farben etc.). Wir würden da einfach einen Vorschlag machen und nach Bedarf anpassen.

@fbufbi
Copy link
Contributor

fbufbi commented Oct 18, 2023

@caebr Manifest:

  • Name: Evento
  • Kurzname: EVT
  • Beschreibung: Schulverwaltungsapplikation des Kantons Bern
  • Hintergrundfarbe: #EA161F (rot)
  • Icon: Kanton Bern - könnt ihr das bereits eingesetzte Favicon verwenden?

@caebr caebr self-assigned this Nov 7, 2023
caebr added a commit that referenced this issue Nov 8, 2023
caebr added a commit that referenced this issue Nov 8, 2023
caebr added a commit that referenced this issue Nov 9, 2023
caebr added a commit that referenced this issue Nov 9, 2023
caebr added a commit that referenced this issue Nov 9, 2023
caebr added a commit that referenced this issue Nov 9, 2023
caebr added a commit that referenced this issue Nov 9, 2023
caebr added a commit that referenced this issue Nov 9, 2023
caebr added a commit that referenced this issue Nov 9, 2023
caebr added a commit that referenced this issue Nov 9, 2023
@caebr caebr mentioned this issue Nov 13, 2023
@hupf
Copy link
Collaborator

hupf commented Dec 4, 2023

@schefbi Ein paar Bemerkungen zur Umsetzung:

  • Wir haben einen minimalen PWA-Setup mit Service Worker und Web Manifest mit dem Vite PWA Plugin (welches auf Workbox basiert) implementiert.
  • Zusätzlich haben wir die App Offline-fähig gemacht – d.h. wenn man keine Internetverbindung hat kommt ein Offline-Screen:
    image
  • Der Service Worker pre-cached dazu die nötigen Resourcen (index.html, Logo, Styles, Scripts).
  • Die Installierbarkeit konnten wir leider nur bedingt testen, da die App in einem Secure Context laufen muss. Wir konnten aber lokal mit Chrome und self-signed Zertifikat die App installieren. Wir schlagen vor, dass wir dies nun mal so deployen, damit man dann noch mit Android/iOS Geräten gut testen kann ob es effektiv wie erwartet funktioniert. Mit BrowserStack kamen wir leider nicht auf einen grünen Zweig.

@schefbi
Copy link
Collaborator

schefbi commented Dec 5, 2023

@caebr Lighthouse meint alles grün:
image

@caebr
Copy link
Collaborator Author

caebr commented Dec 5, 2023

@schefbi Wir haben die PWA auf unseren Smartphones ausprobiert (Android mit Chrome und Firefox). Installation und Offline-Modus haben soweit funktioniert.

Uns ist aber noch aufgefallen, dass das Icon nicht ganz ideal ist:

pwa-icon

Das können wir noch anschauen.

@schefbi
Copy link
Collaborator

schefbi commented Dec 5, 2023

@caebr Ich habe einmal die Kom Abteilung anschrieben.

@caebr
Copy link
Collaborator Author

caebr commented Dec 5, 2023

@schefbi Wir haben Tool verwendet, welches uns die Bilder theoretisch in den richtigen Formaten/Grössen generiert hat. Inbesondere ist ein "maskable" Icon nötig, damit das obige Problem eben genau nicht auftritt - aber etwas ist wohl noch nicht ganz richtig.

https://developer.mozilla.org/en-US/docs/Web/Progressive_web_apps/How_to/Define_app_icons#support_masking

D.h. wir können ein entsprechendes Icon auch selber generieren.

Noch eine andere Frage: Ist EVT als Short-Name ok? Oder wäre Evento hier besser?

@schefbi
Copy link
Collaborator

schefbi commented Dec 5, 2023

@caebr Ich würde "Evento" als Short-Name nehmen. Wie in der Beschreibung. Generiert doch einmal die maskable icons. Wir werden dann sehen was die Kommunikation des Kantons meldet.

@schefbi
Copy link
Collaborator

schefbi commented Dec 20, 2023

@caebr Icons werden in der KW 1 oder 2 2024 von der kom.be.ch an uns gesandt.

@fbufbi
Copy link
Contributor

fbufbi commented Jan 16, 2024

@schefbi Abklärung mit STA-KomBE in der Beschreibung ergänzt.

@schefbi schefbi linked a pull request Jan 16, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants