mhabit icon indicating copy to clipboard operation
mhabit copied to clipboard

Android Intents

Open nikhil-mat opened this issue 1 year ago • 6 comments

Can we get the ability to Trigger mark a habit complete when an android intent is received or to send an intent when a Habit is completed

nikhil-mat avatar Jul 12 '23 19:07 nikhil-mat

701689209157_ pic

IIUC, Are u referring to the ability to send an intent with an action notification? That's a good idea. I will mark this feature.

FriesI23 avatar Jul 13 '23 01:07 FriesI23

I meant android intents sent to and from applications such as tasker allowing people to create automations around Mhabit

For example When you enter the geolocation of your Gym Tasker send a Intent to Mhabit marking the Gym habit complete for the day Or If Tasker detects that Mhabit has not sent a completion intent for a habit in the last X number of days It creates reminder Task in your tasks app image.jpg

nikhil-mat avatar Jul 13 '23 07:07 nikhil-mat

I haven't android automated tasks before (is this similar to the Automator in macOS?)... perhaps because I personally use a customized ROM (MIUI). It's a good suggestion, but I would need to familiarize myself with this functionality first.

FriesI23 avatar Jul 13 '23 08:07 FriesI23

Hell yeah, actions to check from the notification could be great, for me it's something available in uhabits missing in mhabit ! 👍

Darkham42 avatar Jul 16 '23 15:07 Darkham42

@FriesI23 similar idea to Automator, yeah

Apps like Tasker or MacroDroid allow people to setup arbitrary triggers and then respond to it. Anything from phone sensors, to location, in my case I use NFC for a lot of things

So, I can write an NFC tag and if the app has a Tasker plugin or has Intents created properly...

Then I can just wire up whatever trigger (NFC tag in my case) to check this habit off.

Loop habit tracker, (uhabits) has this feature and I enjoy it there and am missing it here to consider switching over fully

sreich avatar Aug 02 '24 23:08 sreich