I used the code blocks that you said and when I downloaded the app, I clicked the button a few times. I closed the app and then opened it again and the button reset to 0.
I replicated with the same stapes, tested in companion and with apk installation as well, it's working as expected. I used the same code
1 Like
Ok, sure
Yes, that might be the blocks to be triggered on screen1.Initialize, to load the global i with old value from TinyDB, else it will be reinitialised with 0 every time when program start.
Thanks