Allow Tasker to read habit data #423
Replies: 7 comments 4 replies
-
|
I agree that this is an important feature, and I would be very happy to review pull requests implementing this feature. From the feedback I received, however, I know for a fact that many users are using the app to track very sensitive habits (for example, related to medical conditions or addictions). For this reason, I would only accept such a pull request if security measures were put in place to prevent other malicious apps from extracting that information. |
Beta Was this translation helpful? Give feedback.
-
|
Okay, then how about an app setting that's simply "Allow other apps to read my habit data", disabled by default? That is, if it's not simply possible to just restrict access to exclusively automation apps like Tasker. Which would be the more obvious approach, so I'm assuming you can't do that? |
Beta Was this translation helpful? Give feedback.
-
|
In the meantime, if you have root access or (untested) ADB WiFi set up, it's possible to hack around this in Tasker by searching for the notifications posted. This will either print the notifications from Loop, or Similar, Tasker can use notification permissions to listen for the This is far from ideal, but it's the closest I've gotten without trying using root to directly read Loop's habit database. Motivation: I've implemented a system in Tasker that will automatically enable Digital Wellbeing's Focus Mode once Sleep as Android starts an alarm, blocking social media and web browsing apps, then once I finish my morning habits by checking them off (clearing the notification), Focus Mode will be automatically disabled. I'd be in favor of If possible, it'd be nice to allow other automation apps beyond Tasker to read the data, e.g. Easer, an open-source Android automation app. |
Beta Was this translation helpful? Give feedback.
-
I think that would be fine. If anyone is interested in implementing this, feel free to submit a pull request. |
Beta Was this translation helpful? Give feedback.
-
|
I would also like this feature |
Beta Was this translation helpful? Give feedback.
-
|
Does anyone know if this ended up happening? |
Beta Was this translation helpful? Give feedback.
-
|
If rooted it is also possible to do an SQL query using tasker SQL Query action or termux sqlite3 cmd. The relevant file should be |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
While I suppose it would be nice to have a habit automatically checked off when something happens (as is currently possible with the check habit action in Tasker), it's not really relevant in the critical process of forming habits. Where Tasker automation would really be powerful is in that area: "if I haven't done xyz yet today, nag me (with some set of actions) until I have". This could make the difference between something I occasionally check off when I remember, and a truly lasting habit. The built-in reminders alone are not effective enough for me.
Unfortunately, the only Tasker "integration" currently is one-way (write-only), allowing automated "checking" of habits, but no ability to see whether one is checked or not.
Without this feature, the best one can do (that I can imagine) is enable early reminder notifications for all relevant habits, make them persistent so they can only go away by being checked, and then have Tasker read the system notifications to see which habits are not done. This might work, but would leave a mess of permanent notifications all day.
It seems the lead developer is concerned about implementing this securely. That's also a discussion to be had, although in the interim, I personally don't care if all my device's other apps can see that I flossed this morning.
Beta Was this translation helpful? Give feedback.
All reactions