SITUATION: I created a persistent appstate variable. When I give it a value it keeps its state even if I navigate to another page within the app and then come back. Whereas the page state variables get cleared just as expected.
PROBLEM: When I close the app the appstate variable gets cleared. I tested it on iOS and iPadOS via testflight, so there is a proper installation on the phone.
Any help very much appreciated, thanks.