Override "Pause app activity if unused"?

when this happens, it seems like I lose tiny DB data, which is where I hold my user settings.
is there a way to turn this off in the app - kind of like how we pop permission requests?

thanks for the help
PS I know I can switch it off here in the phone settings, I would just prefer for it to be done app side if possible :slight_smile:

TinyDB data is persistent
There mjght be a bug in your blocks?
Are you reading the data from TinyDB when the app resumes?

It would really help if you provided a screenshot of your relevant blocks, so we can see what you are trying to do, and where the problem may be.

To get an image of your blocks, right click in the Blocks Editor and select "Download Blocks as Image". You might want to use an image editor to crop etc. if required. Then post it here in the community.

Taifun


Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by icon24 Taifun.

that's good to know - i've personally never had this happen, but it supports my theory that users are removing the app and then redownloading it for this to happen to them.

I just had assumed it was me, but I suppose not.
the reason I never post my blocks is because its a massive program - I cant even get it all in frame just as a reference - this is 1/2 of it.
honestly i've been asking a lot of app inventor and i'm amazed its made it this far functionally.

Im so very thankful for everyones help over the years, it has allowed me to build something exceptionally cool for the community im a part of.
a heartfelt thank you indeed.

I asked for the relevant blocks, not all...
Taifun

Like I said, its a user issue based on your first response.
results of people deleting app then redownloading it - not just not using it for awhile.
the app is fine.

thanks for the help

so, if I am understanding this correctly, Anke - could "temporary files" be things saved via tiny DB?
is there a permission call I could pop in the app to disable "pause app activity if unused"

TinyDB is implemented as a SharedPreferences object in Android. This would not fall under the category of "temporary files." That's more things like cached files (e.g., tiles for the Map component).

This is a feature of Android. There is no way to override the behavior.

thank you.
sounds like indeed folks are deleting the app and redownloading it from the play store. its rare I have this complaint, and I personally havent been able to recreate it.

see also this note

Taifun

there was an era on my website where I had beta versions of app updates, different file names, so technically different apps.
from further prodding on folks, this seems to be the folks effected, which makes sense.
looks like once folks come from the app store, such that its the same app just being updated, everything is clean

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.