imi-ms / MoPat

Mobile Patient Survey (MoPat) is a Java based web application to create, distribute, complete and export medical questionnaires.
Apache License 2.0
8 stars 1 forks source link

Add app.webmanifest for Progressive Webapp Support #78

Closed ywarnecke closed 1 week ago

ywarnecke commented 2 weeks ago

With newer iOS versions, the requirements to display the app in fullscreen changed. Due to this, redirects would open in a popup on our iPads, instead of just redirecting the page in the fullscreen app.

In some testing it was found, that the following manifest is enough to fix this issue: { "name": "MoPat", "short_name": "MoPat", "start_url": "/", "scope": "/", "display": "fullscreen" }

with <link rel="manifest" th:href="@{/app.webmanifest}" /> in the layout templates.

app.webmanifest has to also be allowed in the Spring Security configuration

ywarnecke commented 1 week ago

Merged with #80