Notification Event: %evtprm1 changed from app name to package string?

449 views
Skip to first unread message

John W.

unread,
Aug 12, 2019, 4:49:43 PM8/12/19
to Tasker
Sometime in the last two weeks the notification event trigger started populating %evtprm1 with the package name rather than the app name as it formerly did. Was this an intention change? It's a rather significant bother during the day as I used evtprm to manage work-day email alerts based on content. Please advise if this change was intended. I haven't changed devices lately; still using the Android 8.0 Samsung S7. Rebooting had no effect. 

Marta Hintz

unread,
Aug 14, 2019, 11:57:36 AM8/14/19
to Tasker
usually that means the variable never had a chance to get set. does the log show something interrupting?

John W.

unread,
Aug 14, 2019, 2:23:38 PM8/14/19
to Tasker
No, no interruption but that strikes me as an improbable cause. Let me clarify just a bit, though. It is not the case that %evtprm(1) is un-set, but rather that it is mis-set with the owning app's package rather than the owning app's name. %evtprm(2:9) populate as before (though some elements do not populate for all apps, I have not noticed any obvious failures or changes to their regular strings). And if it were an interruption preventing population of %evtprm(1), why would that interruption not be fatal to population of %evtprm(2:9)?

Waffel

unread,
Aug 15, 2019, 11:28:13 AM8/15/19
to Tasker


Am Montag, 12. August 2019 22:49:43 UTC+2 schrieb John W.:
Sometime in the last two weeks the notification event trigger started populating %evtprm1 with the package name rather than the app name as it formerly did. Was this an intention change? 

Hello John W.,
I also  noticed this change after Tasker update yesterday and there is also another person who mentioned this change on Tasker announcement thread on reddit: https://www.reddit.com/r/tasker/comments/co43o0/dev_tasker_583_critical_bug_fix_for_bluetooth/ewuhd7t/

For now, I ended with converting the package name to app name. To do so, add the following action, to corresponding task:

App > Test App

Type:  App Name
Data:  %evtprm1
Store Result In:  %app_name

Now the variable %app_name contains your app name.

Enjoy :) 

John W.

unread,
Aug 15, 2019, 1:24:17 PM8/15/19
to Tasker
OMG, that's brilliant! (though I am more likely going to store the app name in %evtprm(1) where it belongs). My bandaid was to switch the Notification Listener plugin, but I do so dislike using plugins when native capabilities exist. Plugins bloat the data file and require extra processing. I'm going to use your method immediately! Thank you ever so much!
Reply all
Reply to author
Forward
0 new messages