%NTITLE vs %evtprm

1,501 views
Skip to first unread message

Dan G

unread,
Dec 21, 2016, 10:10:17 AM12/21/16
to Tasker
I have a task that reads notifications from a specific app and coverts it from text to speech. Prior to v4.9 I used %NTITLE which worked well.

Since upgrading to 4.9 the %NTITLE is getting loaded with the name of the app instead of text of the notification. The other problem is for every notification event the tasker task is executing twice instead of once as it did before.
I have tried changing over to using %evtprm variables but those are still loading with the name of the app instead of the message it sent.

I am running on an old version of Android, v4.4.2 so I am not sure that has anything to do with it.

Any help is appreciated.

Pent

unread,
Dec 21, 2016, 11:03:46 AM12/21/16
to Tasker


Since upgrading to 4.9 the %NTITLE is getting loaded with the name of the app instead of text of the notification

Certain it's %NTITLE and not %evtprm1 ? I have trouble seeing how the app name could get into %NTITLE.

. The other problem is for every notification event the tasker task is executing twice instead of once as it did before.

Have you maybe enabled Tasker's Notification Listener service ? Is the Accessibility Service still enabled ?

I have tried changing over to using %evtprm variables but those are still loading with the name of the app instead of the message it sent.

It should be %evtprm2 with the title, the current documentation is wrong.  Does
that have the title in ?

Pent

Dan G

unread,
Dec 21, 2016, 1:05:30 PM12/21/16
to Tasker
OK I have things almost working. I had been using %NTITLE for a long time before switching over to %evtprm2 which is working as it should now. I originally had it set to %evtprm1 which did have the name of the app.
You are also correct the %NTITLE never had the name of the app, only the message.

However I am still having the problem of the task executing twice. When the notification is sent Tasker execute the Task and correctly loads the notification message. Immediately after the same task executes again this time containing the name of the app.

I have verified that Android's Accessibility service is not enabled. 

It looks like Tasker's Notification Listener is a downloadable plugin which I don't think it is loaded.I say I don't think it is because I see nothing listed in the apps. If it is named something other than "Notification Listener" then I may have missed it.
I do have the AutoVoice plugin but I think that is for voice commands only. I also have the Secure Settings plugin.

My problem is I don't know where to look. I looked in Android settings under running apps and selecting Tasker I see settings for the Notification Listener but tapping on settings does nothing. I assume it is running I just don't know how to turn it off.
Screenshot_2016-12-21-12-59-13.png

Dan G

unread,
Dec 21, 2016, 1:23:49 PM12/21/16
to Tasker
OK, This thing is driving me nuts!

I went into Android's Accessibility and I see Tasker running as a service so I turn it off. That stopped the double task execution but now %evtprm2 only holds the name of the app that sent the notification. Gezzzzz!

Pent

unread,
Dec 21, 2016, 2:01:30 PM12/21/16
to Tasker

I went into Android's Accessibility and I see Tasker running as a service so I turn it off. That stopped the double task execution but now %evtprm2 only holds the name of the app that sent the notification. Gezzzzz!

Then turn on the Accessibility service and when the update comes tomorrow it should all work.

Pent

Dan G

unread,
Dec 21, 2016, 2:05:14 PM12/21/16
to Tasker
Thanks, I will report back after the update.

Dan G

unread,
Dec 22, 2016, 1:31:42 PM12/22/16
to Tasker
Release 4.9u1 fixed the problem. Works as it should now. Thanks much.


On Wednesday, December 21, 2016 at 2:01:30 PM UTC-5, Pent wrote:
Reply all
Reply to author
Forward
0 new messages