How to clear iOS memory cache

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?

+4
source share
2 answers

Just treat your simulator like a real iPhone. Press and hold one of the icons so that they all sway. Then uninstall the installed application. This will delete the stored data.

- H (, ), .

+9

. iOS Simulator : Hardware -> Erase All Content and Settings.... , , , .

+7

Source: https://habr.com/ru/post/1616387/


All Articles