renyuneyun / Easer

User-defined explicit automation for Android
https://renyuneyun.github.io/Easer/
GNU General Public License v3.0
816 stars 93 forks source link

Reading notifications from an app #366

Open alacecho opened 3 years ago

alacecho commented 3 years ago

Hello! Maybe is not exactly a issue, but I am getting this mistake from Easer: I have created a script that does not work. I want that when I get an e-mail notification from K-9 Mail, with a specific subject or content, a specific audio file (a kind of alarm) sounds. I have granted permission to read the notifications, and to access the phone's storage.

I think the problem is in indicating the "Fully qualified package name of the app", because the alarm sounds if I create a script with a specific time event, for example.

Android 9 Easer last version from F-Droid

Any idea? Thanks!

Mageek627 commented 3 years ago

Same here. I have the same need, and same problem...

I would also like to have a "catch-all" feature where it works for all apps not just one, I don't know if it's already like that but I can't make it work.

deepu2 commented 3 years ago

My script which reads Incognito mode notification doesn't work too

renyuneyun commented 3 years ago

Hi, sorry for not the loooooong delay. I don't use K9 mail, so I'm not exactly sure about its package name. But I tried to find it out on its source repo, and found a potential match: com.fsck.k9.core.

The feature by @Mageek627 is supported: if you place nothing in the app id field, Easer will match every app.

renyuneyun commented 3 years ago

@deepu2 I guess "incognito mode" means "do not disturb" mode? If that is so, then there is nothing Easer can do AFAIK. Everything is based on official API, so we need to accept the API limitations too.

deepu2 commented 3 years ago

@deepu2 I guess "incognito mode" means "do not disturb" mode? If that is so, then there is nothing Easer can do AFAIK. Everything is based on official API, so we need to accept the API limitations too.

Not do not disturb mode, I was talking about the notification from chrome browser when you open a new Incognito tab. I was thinking of reading that notification.

Screenshot_2021-09-05-21-11-46-82_b0b2789834e05496f6718b81538f0fbf.jpg

renyuneyun commented 3 years ago

@deepu2 Thanks for the clarification. What was your setting (Event) that didn't work?

zakyum commented 3 years ago

Might be related, for me no combination (title, content, app) of the "Notification received" event gets triggered. Tested with other triggers and they work, just notifications doesn't seem to work. Tested with both the stable and beta versions of the app.

sk197876 commented 2 years ago

I have the same problem. I wanted my phone to react to messages sent via Jabber (Conversations app) or Nextcloud Talk or e-mail (K9 mail client). I tried many configurations and my event was never triggered. It only works with SMS.

anagramka commented 2 years ago

Notification event doesn't work for me too in Easer app, however it works with Automation 1.7.3 app from F-Droid, with same parameters (package name, title, content). Permission granted to Easer notification listener app. Android 11, Easer 0.8.2.2-beta.

alirezadigi commented 2 years ago

sorry friends @anagramka @sk197876 @zakyum any updates?

MobCode100 commented 6 months ago

For anyone who encounter this, the fix is already in beta branch but after nearly 2 years, no APK file has been officially released. However, I've build my version of Easer beta that includes the fix if anyone wants to try.