appsmith icon indicating copy to clipboard operation
appsmith copied to clipboard

[Feature] Offline PWA / offline mode

Open jsartisan opened this issue 4 years ago • 9 comments

I think it would be great if we can have a PWA ( mainly for desktop ) for appsmith so that users can open appsmith without the need to open the browser at all.

Front logo Front conversations

jsartisan avatar Dec 18 '20 06:12 jsartisan

I definitely support this feature request.

As Appsmith already stores data in a database, the service worker needed by the PWA will be very simple.

The hosted instance already serves the app under https.

Hosted and self-hosted appsmith instances can be made PWA with very little burden.

jibe-b avatar Dec 31 '20 14:12 jibe-b

And it's worth navigating in the code to see that there already is a service worker https://github.com/appsmithorg/appsmith/blob/release/app/client/src/serviceWorker.js

jibe-b avatar Dec 31 '20 14:12 jibe-b

@jibe-b thank you for upvoting this. Could you tell us a bit about your motivation for this feature?

Nikhil-Nandagopal avatar Jan 04 '21 08:01 Nikhil-Nandagopal

I am often interacting with clients and the mobile version will be very useful to prototype something with them while discussing.

A PWA makes the experience more stable when the connexion is erratic and the cache enables to continue prototyping and have it deployed later.

jibe-b avatar Jan 05 '21 08:01 jibe-b

Another request for this Discord chat:

fountainheadYesterday at 10:15 AM
just wondering ... is there any possibility to do offline apps with Appsmith?

Abhishek NayakYesterday at 10:48 AM
How would the experience work? Like save form data offline till internet comes back on?

fountainheadYesterday at 4:15 PM
Yes, that would be fantastic. Basically, I got a requirement for a simple CRUD project for doctors who are inside a hospital with no network. If they can sync up when online, it would be awesome. Simple use-cases with single user crud operations (with no concurrency conflicts) is fine. I am not sure how the app would be stored / refreshed ... but  I am hoping a wrapped up app in a cordova shell or something should hopefully work.

Nikhil-Nandagopal avatar Mar 01 '21 06:03 Nikhil-Nandagopal

I think an integration with PouchDB is a good option to fully support offline first apps and automatically sync centralize database when network available.

ryzam avatar Dec 30 '21 12:12 ryzam

In the mean time isn't possible only add a manifest... so we are able to change it? As of today is already possible "install an appsmith app" as a browser app... but as manifest dossn't exist if something change (for example start url) we must unsintall the app and install it again

codedmind avatar Jan 28 '22 08:01 codedmind

+1

kittiu avatar Jul 12 '22 12:07 kittiu

Interesting. Sure making the PWA could provide offline capabilities. But what about just having the fancy shortcut? It might be just a matter of providing the right <meta> tags? Me, as an Appsmith developer, would enable something in the "App Settings" (e.g. PWA settings) to define an icon, default name, etc. The app would still behave the exact same but without the phone's browser headers (internet access still required).

Attaching images of current behavior. image image image

iamenrique avatar May 12 '23 21:05 iamenrique