Notification As Profile Trigger

3,940 views
Skip to first unread message

Jim Haselmaier

unread,
Feb 15, 2018, 10:46:53 AM2/15/18
to Tasker
I'm stumped.  I'm not an expert Tasker user by any stretch.....but I've used it off an on for a few years.

My objective is to have a Profile triggered based on a Twitter notification.  I've set up Twitter push notifications so I get a notification when a user I follow posts a tweet.

I've set up a Profile:
     Event -> UI -> Notification

I've left the Owner Application blank.  (Although I've also tried this with having Twitter being the Owner Application.)

In the Event Edit Notification screen I've got in the Title field:
%NTITLE~*<text>*

I've also checked "New Only" at the bottom of that config screen.

When the Twitter notification appears the Profile is not triggered.  But after the notification appears and the Profile doesn't run, I check the contents of %NTITLE and it contains the name of the Twitter account that generated the notification - which is the <text> in the pattern match.

Any clue what I'm doing wrong?

And, if I can get this solved, I'd actually *prefer* to pattern match against the content of the tweet itself - not the account that posted the tweet.  But that's down the road.  If I can get the above working I'd be happy.

Thanks!

Jim

Oh yeah:  Samsung S8 running Nougat and Tasker v5.1m

Adam Lopresto

unread,
Feb 15, 2018, 12:47:36 PM2/15/18
to Tasker
Do you actually have the "%NTITLE~" part in the text box for "Title"? Because you really should only need the text to match. Or am I misunderstanding what you mean?

Jim Haselmaier

unread,
Feb 15, 2018, 1:01:06 PM2/15/18
to Tasker
I do have the %NTITLE in the Title field of the Event Notification screen.

Rich D

unread,
Feb 15, 2018, 6:07:52 PM2/15/18
to Tasker Google Groups Post

I do have the %NTITLE in the Title field of the Event Notification screen.

As Adam mentioned you need to remove the %NTITLE~ from the Title field. 

Jim Haselmaier

unread,
Feb 15, 2018, 6:37:58 PM2/15/18
to Tasker
OH!  I mis-understood Adam's point.  Sorry.

I've put in the Title field only the pattern to be matched (*Loveland*....without the parentheses) and still no joy.

If it matters (in case I"m doing other things wrong)
*  The Notification Title is Ft Collins Loveland Train Alert   (This is the name of the Twitter account that is posting the tweet I'm receiving the notification for)
*  I'm determining the value of %NTITLE because I've created a Task that displays %NTITLE in a popup.  So after I get the notification (and the Profile isn't triggered) I then go an manually run the task that displays the contents of %NTITLE and I get the title as I expect:  Ft Collins Loveland Train Alert



On Thursday, February 15, 2018 at 8:46:53 AM UTC-7, Jim Haselmaier wrote:

Marta Hintz

unread,
Feb 15, 2018, 9:01:30 PM2/15/18
to Tasker
I think it's easier to spot little errors if you just post the description (Not XML) of the task.
Message has been deleted

Jim Haselmaier

unread,
Feb 15, 2018, 11:02:02 PM2/15/18
to Tasker
Is this the format and detail you're describing?

Profile: Test (17)
Event: Notification [ Owner Application:Twitter Title:*Loveland* Text:* Subtext:* Messages:* Other Text:* Cat:* New Only:On ]
Enter: Open Train Alert (18)
A1: Browse URL [ URL:http://jimhconsulting.com/nocotrainalert.html

I've configured it with both an Owner Application of Twitter, as well as leaving that blank.  If it causes a change in behavior I haven't noticed it.

Another oddity:  When the phone is NOT charging, and the Twitter notification comes in, %NLTITLE is the name of the Twitter account generating the Tweet that causes the notification.  But when the phone IS charging, %NLTITLE contains 'Cable charging' - even though the most recent notification is the Twitter notification.

This is how I check %NTITLE after the above Profile doesn't run.  It's just a Task that I launch manually:

Popup (25)
A1: Popup [ Title:Variable Text:%NTITLE Background Image: Layout:Popup Timeout (Seconds):26 Show Over Keyguard:On ] 




On Thursday, February 15, 2018 at 8:46:53 AM UTC-7, Jim Haselmaier wrote:

Rich D

unread,
Feb 16, 2018, 4:33:56 AM2/16/18
to Tasker Google Groups Post
Check your android notification settings.

In your android settings

Apps and notifications -> Advanced -> Special app access -> Notification Access ->  make sure Tasker Tasker is selected. 

Rich D

unread,
Feb 16, 2018, 4:58:33 AM2/16/18
to Tasker Google Groups Post



Check your android notification settings.

In your android settings

Apps and notifications -> Advanced -> Special app access -> Notification Access ->  make sure Tasker Tasker is selected. 


In addition you can check  to see if it is the profile failing or the task that is failing by viewing the run log. Menu / more / runlog

Jim Haselmaier

unread,
Feb 16, 2018, 10:45:26 PM2/16/18
to Tasker
Thanks so much folks.  It appears to be working now!

When I checked Settings -> Apps -> Special Access -> Notification Access .....Tasker was enabled, but one called Notification was not.  When I enabled that things started working.

Thanks again!

Jim


On Thursday, February 15, 2018 at 8:46:53 AM UTC-7, Jim Haselmaier wrote:
Reply all
Reply to author
Forward
0 new messages