-
After some time of use, my son's xDrip+ database went above 3.4GB and I decided it was time to cleanup. I thought Less common settings -> Glucose retention would do that for me and set it to 90 days. The day after, no change. I then thought Save database daily would trigger the feature above and enabled it. Next day still 3.4GB. Out of desperation I saved all settings and deleted xDrip+ data at Android apps level, then recovered settings etc. |
Beta Was this translation helpful? Give feedback.
Replies: 8 comments 13 replies
-
I am seeing something in the code that could be an issue. I am performing a test right now and need to wait 24 hours before it is applied. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
@jamorham Even though the title "DailyIntentService" suggests something that runs daily, it seems that in reality it runs once every 48 hours. Or am I wrong in making that conclusion from my logs? Do we have any task in the list in DailyIntentService that must run once a day? Thanks |
Beta Was this translation helpful? Give feedback.
-
I had the same issue and the only solution was in fact to delete all data and re-setup xDrip again. Was a good idea to have a button like AndroidAPS does to cleanup database. I think is a good approach. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
If my suspicion is correct and the daily intent runs when the phone is being charged eventually, I don't think we have an issue. Of course we will always have one person who waits for their phone storage to be 99.999% full before they decide to post in a forum. No matter what we do, we can never be prepared for something like that. Even if the database is cleared once a day if you wait long enough, it will not work. |
Beta Was this translation helpful? Give feedback.
-
I can see that the daily intent service runs everyday after my PR on my test phone. But, I don't know why it does not create a daily database backup even though I have enabled it for the sake of the test. |
Beta Was this translation helpful? Give feedback.
After saving database and giving permission, the next time daily intent ran, the daily database save succeeded. This is weird because there should be a log if the daily database save fails and there wasn't.
Anyway, this is something we can look at as a separate possible issue.
Hopefully, the PR will be merged the daily intent will then run daily whether you charge your phone everyday or not.