This is a migrated thread and some comments may be shown as answers.

How to clear the local storage in the Emulator?

2 Answers 1673 Views
General Discussion
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Ruud
Top achievements
Rank 1
Ruud asked on 08 May 2015, 03:05 PM

Hi,

I am developing a hybrid app with the Windows Client Appbuilder. I use the emulator provided by the appbuilder to debug etc. I know it is using the WebSql db. I can delete content from the tables, however, I now need to delete the complete db all together for development purposes. In Chrome you can do that (deleting sqlite db's) by deleting the local storage (chrome://settings/cookies in the address bar); can this be done in the emulator as well?

Thanks in advance!

Ruud

2 Answers, 1 is accepted

Sort by
0
Zdravko
Telerik team
answered on 13 May 2015, 07:56 AM
Hi Ruud,

I suppose you are talking about the Simulator we provide as it is using WebSQL database instead the provided SQLite from the plugin. Notice that there are also native emulators provided as a feature and this is completely different.

There are two ways of resetting your database in the Simulator. The first one is to delete the cache of the Simulator right before running the app in it. To do this remove  %localappdata%\Telerik\BlackDragon\Cache\WebBrowserPackage-2015.2.511.2\WebBrowserCache\databases folder or any of the parent folders.

The second one is to delete your database from the code and then initialize it again.

I hope I have been of assistance.


Regards,
Zdravko
Telerik
 

Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

 
0
Ruud
Top achievements
Rank 1
answered on 16 May 2015, 12:48 PM

Hi Zdravko,

Thanks, found it!

Tags
General Discussion
Asked by
Ruud
Top achievements
Rank 1
Answers by
Zdravko
Telerik team
Ruud
Top achievements
Rank 1
Share this question
or