Ion toggle/ ion alert checkbox doesn't work

When I run my app in the emulator, I check my ion toggle and my checkbox alert, but as soon as I close the app and open it again, the changes I made do not remain.
I looked for solutions here on the forum and did not find any similar question.

I used these codes:

Is this because I’m using an emulator or because I didn’t add someone else code to save the user’s changes?

The latter. There isn’t a universal definition of “save” (or “changes”, for that matter) that would make sense for all situations. Ionic Storage is a good way to persist data across app runs.

1 Like