Help with extracting data from "Init Variable Notific...."

Post your questions and help other users.

Moderator: Martin

Post Reply
ewill
Posts: 67
Joined: 20 Jul 2015 16:42

Help with extracting data from "Init Variable Notific...."

Post by ewill » 14 May 2018 16:25

I am trying to extract data and perform logic from the results return from the "Init Variable Notifications on Statusbar" action.

I have searched, but didn't find an example to take from.

I would imagine that this would be logic that I would put into a script action.

What I am trying to do is:
- Determine if there is a notification present for a certain application. (for example automagic, google play, etc)
- If so, does the notification text (notification_info_text) contain a string.

Hopefully that is sufficiently clear.

If anybody can point me to an example, that would be appreciated.

Thank you in advance for the assistance.

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: Help with extracting data from "Init Variable Notific...

Post by Desmanto » 14 May 2018 17:16

You can use my variable logger flow : viewtopic.php?f=3&t=7285
Change the trigger to Notification on Statusbar and match * (all notification). Let it run for a while and gather all the necessary notification. Later you can analyze which variable contain the text or things you need. Or maybe you can spot a pattern for certain app.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

ewill
Posts: 67
Joined: 20 Jul 2015 16:42

Re: Help with extracting data from "Init Variable Notific...

Post by ewill » 22 May 2018 13:57

Desmanto wrote:You can use my variable logger flow : viewtopic.php?f=3&t=7285
Change the trigger to Notification on Statusbar and match * (all notification). Let it run for a while and gather all the necessary notification. Later you can analyze which variable contain the text or things you need. Or maybe you can spot a pattern for certain app.
Sorry for the late reply, but I forgot to set the thread to notify me on replies.

Thank you very much for the assistance - I think this should help quite a bit.

Post Reply