alieissa / BusTracker

0 stars 0 forks source link

Migrate from firebase to local device storage #8

Closed alieissa closed 8 years ago

alieissa commented 8 years ago

For the prototype was using firebase as a backend. Will have to use either SQLite which is readily available on phones or use web storage. Data volume is not significant so I am not constrained much

alieissa commented 8 years ago

Decided upon SQLite as local storage, it is the only option that is really persistent. Will use Cordova-SQLite-Ext plugin to for database access, it is the only option. Documentation for it is lacking.

Will use WebSQL for development, as the Cordova plugin is a clone of WebSQL. Was unable to use Ripple to develop with plugin using physical device and/or Android emulator were absolutely a pain.

alieissa commented 8 years ago

Got cordova sqlite plugin to work in physical device, very painful. Had to use another cordova-plugin-dbcopy along with cordova sqlite.