Scott Camacho5948926
Posts: 0
Joined: Thu Jun 13, 2013 4:41 am

how do I clear sqlite table each time app loads?

is there a command to clear out the sqlite database the iphone so that I can do better testing. It seems to save the user data after I login via facebook, etc. I would like to clear it out so I can run some tests. thanks

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

how do I clear sqlite table each time app loads?

Probably the best way to find out is to check SQLite API and what it provides...

Scott Camacho5948926
Posts: 0
Joined: Thu Jun 13, 2013 4:41 am

how do I clear sqlite table each time app loads?

ok. This is what the app uses by default to store local variables correct?

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

how do I clear sqlite table each time app loads?

If you are talking about local storage -- it's different than sqlite.

Scott Camacho5948926
Posts: 0
Joined: Thu Jun 13, 2013 4:41 am

how do I clear sqlite table each time app loads?

ok sorry, It is local storage that I want to clear out each time the app loads for now. I have found this and modified it will it work perhaps?

for (var i in localStorage){
localStorage = '';
}

I am about to try it.

Return to “Issues”