10-13-2012 07:36 AM - edited 10-13-2012 07:26 PM
I am building cross platform applications using Phonegap. Additionally I use Lawnchair to store data in the local database.
My question is quite general. I install an application that I built for iPhone, Android and Blackberry, then create some items to store in the database. This is done without any problem on any platform, however I would like to delete the whole database so I delete the application and reinstall it. On iPhone and Android the database is cleared automatically, however on Blackberry the items are still stored in the database.
I know that I could use localStorage.clear() in my javascript code, however I need to achieve clearing the database without modifying my application.
So why is the database not deleted when I uninstall a Blackberry application?
10-17-2012 02:16 PM
In my experience, Java devices (BlackBerry 6,7) will require a reboot to clean up after the application. I have tested local storage on BB10 and PlayBook and the data gets deleted when uninstalling the app. Have you tried a reboot?
10-17-2012 02:27 PM
Yes when I delete an app it asks for a reboot so I do it. Then when I install the app again the DB is still there.
10-17-2012 02:31 PM
Please provide me with the following information for further testing:
1. Device Model and OS version.
2. WebWorks SDK version.
10-17-2012 02:37 PM
I am using BB Tourch 9800 and OS 6.
Also I am not using webworks at all, I build my application with javascript and HTML, zip them together and upload it to phonegap build which build a BB app for me.