samuk190 / localbase

A Firebase-Style Database ... Offline!
649 stars 83 forks source link

Database does not persist on iOS PWA #2

Closed TheElectricCo closed 3 months ago

TheElectricCo commented 4 years ago

Hi @dannyconnell,

First of all, thank you for the localbase library. As I have used Firebase in some of my previous projects, this adaptation of IndexedDB is a breeze to work with. Thanks!

I've just encountered one problem. Once I try to work with localbase on a PWA application installed on an iOS device, it does not seem to persist. I create a database, add a bunch of stuff to it, close the PWA and when I reopen, the database is empty.

Is this a known issue? Are there some caveats I don't know about on iOS? Everything seems to work just fine on Chrome/Android.

Thank you! Regards, Lens

TheElectricCo commented 3 years ago

Hello @dannyconnell, did you per chance had time to take a look on this issue?

dannyconnell commented 3 years ago

Hey @TheElectriCo I haven't had a chance as I've been working on a course. Is this issue on Safari iOS? Does the data get lost if you view the PWA in the browser (Safari)? Or does it got lost when you've saved the app to the home screen? Or both? If it's only happening in the browser, are you viewing it in a private tab?

TheElectricCo commented 3 years ago

@dannyconnell, thanks for getting back to me, I understand you are a busy man!

Regards, Lens

samuk190 commented 3 months ago

Can you guys check if this issue is still happening @TheElectricCo if yes please make a new issue with more evidence