In my ionic application, I installed tokens in local memory:
set: function(key, value) {
$window.localStorage[key] = value;
},
It works great. When I first launched the application in the ios simulator, it found that there was nothing in localstorage and behaved accordingly. However, every time I run the application in the simulator, it always detects a token. I would like to clear localStorage in an IOS simulator for my application.
What is the process for doing this?
source
share