angularfire2-offline icon indicating copy to clipboard operation
angularfire2-offline copied to clipboard

We are Lookforward to including sqlite in ionic 2 angularfireOffline!

Open aboessa opened this issue 8 years ago • 11 comments

Hi , First thank you for this awosome work , but the package use localstorage which have many problem an differ platfroms such as android which is have 5 mb disk limit , and in ios the data can be deleted on any time refer to : https://cordova.apache.org/docs/en/4.0.0/cordova/storage/storage.html If The Package Author Or Any experience one can contribute it with this feature, again thank you for this good work.

aboessa avatar Jan 31 '17 05:01 aboessa

Using SQLite would be a nice feature for native Ionic 2 projects because it would allow more offline storage. There would need to be a fallback on local storage if the Ionic project was also being used as a progressive web app.

This library looks promising: https://github.com/litehelpers/Cordova-sqlite-storage

Anyone interested is welcome to contribute to this feature.

adriancarriger avatar Jan 31 '17 06:01 adriancarriger

Oh we have the same problem right now.. Maybe we creating an AngularOffline Wrapper with SQLite . @aboessa have you already began on an angularFire2Offline Wrapper with SQLite?

nivida avatar Feb 01 '17 16:02 nivida

With the usage of localForage doesn't it only use localStorage as a fallback? From my understanding it will first try for IndexDB, then WebSQL, then default to localStorage. According to the cordova storage docs the first two should cover most install types..

You could always use custom drivers too

DennisSmolek avatar Mar 24 '17 23:03 DennisSmolek

@DennisSmolek you're totally right, it does use localStorage as a fallback. I like the custom drivers option! Perhaps using the Cordova SQLite Driver when AngularFire2 Offline is being used with Cordova would be a nice option to avoid the browser storage limits.

adriancarriger avatar Mar 25 '17 19:03 adriancarriger

You could simply use Ionic's storage module? Works both in browsers and on devices. Would require very little effort to implement.

larssn avatar May 11 '17 20:05 larssn

@larssn actually ionic-storage modules uses localforage as angularfire2-offline and it is possible to configure the backend having same options, just ionic-storage includes Cordova SQLite integration.

ciekawy avatar May 13 '17 22:05 ciekawy

Indeed amazing work here and very well documented! Thanks.

iturn avatar May 14 '17 06:05 iturn

@iturn Thanks!

adriancarriger avatar May 18 '17 01:05 adriancarriger

Thanks for this great work. Any update on this?

monad98 avatar Jul 14 '17 17:07 monad98

hey guys I just moved over from using azure offline sync with cordova which is a total load or rubbish, just want to see hows this coming along?

Ross-Rawlins avatar Aug 07 '17 17:08 Ross-Rawlins

Any updates on this? :)

myrsk avatar Nov 10 '17 22:11 myrsk