cozy / cozy-flagship-app

GNU Affero General Public License v3.0
9 stars 1 forks source link

feat: Implement offline support through CozyPouchLink #1209

Open Ldoppea opened 4 months ago

Ldoppea commented 4 months ago

We want to make the application work when offline.

To make this happens we want to configure a local PouchDB in order to replicated remote CouchDB data and then we want to serve them to the cozy-client instances in both the react-native side and the cozy-apps side (in WebViews)

This PR implement offline support first for cozy-home and mespapiers, other cozy-apps will come later when the new mechanism is proved to work

Related PR:

### ✨ Features

* Add support for Offline mode (for now only on cozy-home and mespapiers)

### 🐛 Bug Fixes

*

### 🔧 Tech

*

TODO:

zatteo commented 1 month ago

Maybe to do in another PR : replace the atob and btoa polyfill we have here https://github.com/cozy/cozy-flagship-app/blob/be4e45832f7a83b13ef46d1686e735b0ec9a001b/src/App.js#L70 by react-native-quick-base64

zatteo commented 1 month ago

No real changes requested, just a lot of question.

As always, very easy to read 👍