How would I go about posting notifications to a txt?

Post your questions and help other users.

Moderator: Martin

Post Reply
KaJuPe
Posts: 1
Joined: 13 May 2019 17:18

How would I go about posting notifications to a txt?

Post by KaJuPe » 13 May 2019 22:18

Hey!

I'm currently trying to have every notification received from Discord put into a txt document with who sent it, when, and what it says on the notification.

The part I'm having issues with is getting this data into variables. I assume you have to use the "Init Variable Notifications on Statusbar" action, but I don't know how to get the data I want from there. Something something maps. I also don't want it to pick up anything not from Discord.

Got any tips?
/Kaj

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

Re: How would I go about posting notifications to a txt?

Post by Desmanto » 14 May 2019 06:29

Hi, just use Trigger Notification on Statusbar Displayed, choose Discord. You don't have to init again. Use my variable logger flow to find which variable you need to log : viewtopic.php?f=3&t=7285

After you know which to log, create another flow to log only those variables and append it to new text file using action Write to File.
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.

Post Reply