threefoldtech / freeflow_twin_main

Apache License 2.0
4 stars 3 forks source link

Add PWA Support #566

Open ken-de-moor opened 2 years ago

ken-de-moor commented 2 years ago
EdwardKerckhof commented 2 years ago

Everything works but we are having a caching issue where when you want to log in and you have already logged in before the state is remembered as authenticated. This is because PWA provides a lot of caching for offline support, but we will need to find a way to exclude some parts.

ken-de-moor commented 2 years ago

There's a few things that still keep it from being really usable as a practical PWA.

1) Notifications don't appear to happen on my phone, even though notifications are allowed. 2) Every single time I restart the app I need to re-login, even though I Directly go to my user URL. Gets annoying very quickly.

Added to V1.6 to tackle these things.

EdwardKerckhof commented 2 years ago

Notifications will be looked at and should not be that hard to fix. We are using sessions for authentication which is known to not work very well on mobile since, like you mentioned, every time the app restarts, the session is gone. This could be tackled by using JWTs but this would take some more work and time.

jdelrue commented 2 years ago

Step 1: Do you host your FreeFlow live yourself or would you like to start one on our environment? Step 2: Yourself -> Ask the URL of the environment (eg https://mydigitaltwin.jonasdelrue.be) -> The user already deployed the env Our env -> Redirect to spawner

Step 3: Start webview with Uhuru loaded inside

Baertie commented 2 years ago

To do: