AdamVig / goco-student

Gordon College Student app
https://gocostudent.adamvig.com
1 stars 0 forks source link

Fix login credential persistence #91

Open AdamVig opened 8 years ago

AdamVig commented 8 years ago

In #67 I changed from localStorage to SQLite via the ngCordova/Cordova SQLite plugins. This was an attempt to prevent stored login credentials from being removed when the user's phone is low on storage.

It seems that SQLite and localStorage both fall into the same category of "volatile" storage on iOS because they are in the WebKit storage area, not application-level storage. The phrasing on the Ionic Native SqlStorage page indicates that the data will be stored using native APIs, so this may be the solution.

To reproduce this bug, use a test device with less than 256 MB of free storage space.