Tasker (or tasker/autonotification combination) causing problems on Android 7 while running navigation

148 views
Skip to first unread message

Steve Rothkin

unread,
Oct 20, 2016, 11:04:40 AM10/20/16
to Tasker
This might be the same problem as I originally reported in https://groups.google.com/d/topic/tasker/EuOjwD7ILPg/discussion
but a lot worse since upgrading my Nexus 6 to Android 7. This is stock (but rooted).

My suspicion is it has something to do with the Autonotification plugin intercepting the status bar updates from Google maps because I only see these problems when I navigate (earlier in the day it was so bad it actually caused tasker to crash and restart itself several times until the phone eventually rebooted itself). The run log doesn't show anything interesting (e.g. high volume) but the debug log shows 8600 instances of autonotification in just 30 seconds!

10/19/16 09:08:39 pm: Navigation Mode started
10/19/16 09:39:04 pm: Navigation Mode Off
        At various points in the 10 minutes before this tried placing call from car dashboard. Call never started
        Also tried dialing from the phone itself (from contacts app). Never actually launched the dialer.

10/19/16 09:41:32 pm: Saving Tasker Logs to Tasker/SavedLogs/10-19-16_21.41

    After log save finished, I disabled tasker. At that point the phone started dialing the calls I tried earlier.
    Tried placing call both from car dashboard and from phone itself. With tasker disabled, no problem placing call.

    Renabled tasker without connecting to car. Again able to place calls with no problem at all.

    Included full backup of my tasker setup as well as system dump.

The profiles that use autonotification are:

Profile: Navigation Detect Switch Away - Phone (251)
Priority: 15 Notification: no
State: Variable Value [ %BootComplete > 0 & %MyNavMode > 0 ]
Application: Maps
Enter: Navigation Foreground (253)
Abort Existing Task
A1: Variable Set [ Name:%SwitchedFromNavigation To:0 Do Maths:Off Append:Off ]
A2: Perform Task [ Name:SaveLastApp Priority:%priority+1 Parameter 1 (%par1): Parameter 2 (%par2): Return Value Variable: Stop:Off ]

Exit: Navigation Switched Away (252)
Abort Existing Task
A1: Wait [ MS:0 Seconds:5 Minutes:0 Hours:0 Days:0 ]
A2: If [ %MyNavMode > 0 ]
A3: Perform Task [ Name:Write Log Priority:%priority+1 Parameter 1 (%par1):Switched away from navigation Parameter 2 (%par2):1 Return Value Variable: Stop:Off ]
A4: Variable Set [ Name:%SwitchedFromNavigation To:1 Do Maths:Off Append:Off ]
A5: Else
A6: Variable Set [ Name:%SwitchedFromNavigation To:0 Do Maths:Off Append:Off ]
A7: End If

Profile: Navigation Running - Phone (226)
Priority: 25 Restore: no
State: Variable Value [ %BootComplete > 0 ]
State: AutoNotification Intercept [ Configuration:Event Behaviour: false
Persistency Type: Both
Has Reply Action: false
Notification Apps: Maps
Get All Fields : false
Get Internal Actions: false
Get Internal Actions Big: false ]
State: Display State [ Is:On ]
Enter: Navigation Enter (227)
Run Both Together
A1: Perform Task [ Name:Write Log Priority:%priority+1 Parameter 1 (%par1):Navigation Mode On App %anapp battery %BATT Parameter 2 (%par2):0 Return Value Variable: Stop:Off ]
A2: Variable Set [ Name:%MyNavMode To:1 Do Maths:Off Append:Off ]

Exit: Navigation Exit (228)
Run Both Together
A1: Perform Task [ Name:Write Log Priority:%priority+1 Parameter 1 (%par1):Navigation Running off, delay for reactivate Parameter 2 (%par2):0 Return Value Variable: Stop:Off ]
A2: Wait [ MS:0 Seconds:2 Minutes:0 Hours:0 Days:0 ] If [ %DisplayOn = 1 ]
A3: Wait [ MS:0 Seconds:8 Minutes:0 Hours:0 Days:0 ] If [ %DisplayOn = 0 | %BootComplete < 1 ]
A4: If [ %PACTIVE !~ *,Navigation Running*,* & %PACTIVE !~ *,Navigation Running*,* ]
A5: Perform Task [ Name:Write Log Priority:%priority+1 Parameter 1 (%par1):Navigation Mode Off battery %BATT Parameter 2 (%par2):0 Return Value Variable: Stop:Off ]
A6: Variable Set [ Name:%SwitchedFromNavigation To:0 Do Maths:Off Append:Off ]
A7: Variable Set [ Name:%MyNavMode To:0 Do Maths:Off Append:Off ]
A8: End If

Profile: Navigation Switch Back - Phone (254)
Notification: no
State: Variable Value [ %BootComplete > 0 & %SwitchedFromNavigation > 0 ]
Enter: Navigation Switch Back (255)
Abort Existing Task
A1: Wait [ MS:0 Seconds:0 Minutes:2 Hours:0 Days:0 ]
A2: If [ %SwitchedFromNavigation > 0 ]
A3: Variable Set [ Name:%SwitchedFromNavigation To:0 Do Maths:Off Append:Off ]
A4: If [ %DisplayOn > 0 ]
A5: Perform Task [ Name:Write Log Priority:%priority+1 Parameter 1 (%par1):Forcing back to navigation Parameter 2 (%par2):0 Return Value Variable: Stop:Off ]
A6: Perform Task [ Name:SwitchToLastApp Priority:%priority+1 Parameter 1 (%par1): Parameter 2 (%par2): Return Value Variable: Stop:Off ]
A7: End If
A8: End If





Profile: Reminder Emails - Phone (258)
Restore: no
Time: From 12:05AM every 15m Till 11:58PM
State: Variable Value [ %BootComplete > 0 & %SilentModeSet < 1 ]
State: AutoNotification Intercept [ Configuration:Event Behaviour: false
Persistency Type: Both
Has Reply Action: false
Notification Apps: Gmail
Get All Fields : false
Get Internal Actions: false
Get Internal Actions Big: false ]
Enter: Reminder Email (256)
A1: If [ %AtHome > 0 | %LoudMode > 0 | %HeadsetPlugged > 0 | %BluetoothGym > 0 ]
A2: Say [ Text:Emails waiting Engine:Voice:default:default Stream:5 Pitch:5 Speed:5 Respect Audio Focus:Off Network:Off Continue Task Immediately:On Continue Task After Error:On ]
A3: End If
A4: Flash [ Text:Unread emails Long:Off ]
A5: Vibrate [ Time:512 ]

Profile: Reminder Text Message - Phone (213)
Restore: no
Time: From 12:05AM every 15m Till 11:58PM
State: Variable Value [ %BootComplete > 0 & %SilentModeSet < 1 ]
State: AutoNotification Intercept [ Configuration:Event Behaviour: false
Persistency Type: Both
Has Reply Action: false
Notification Apps: Messenger
Get All Fields : false
Get Internal Actions: false
Get Internal Actions Big: false ]
Enter: Reminder Text (210)
A1: If [ %AtHome > 0 | %LoudMode > 0 | %HeadsetPlugged > 0 | %BluetoothGym > 0 ]
A2: Say [ Text:Text messages waiting Engine:Voice:default:default Stream:5 Pitch:5 Speed:5 Respect Audio Focus:Off Network:Off Continue Task Immediately:On Continue Task After Error:On ]
A3: End If
A4: Flash [ Text:Unread text messages Long:Off ]
A5: Vibrate [ Time:512 ]

Profile: Reminder Time To Leave - Phone (208)
Restore: no
State: AutoNotification Intercept [ Configuration:Event Behaviour: false
Persistency Type: Both
Has Reply Action: false
Notification App: Google (case ins)
Notification Title: Time to leave for (case ins)
Get All Fields : false
Get Internal Actions: false
Get Internal Actions Big: false ]
State: Variable Value [ %BootComplete > 0 & %CarMode ~ 0 & %SilentTime ~ 0 & %SilentCalTime ~ 0 & %BluetoothCar ~ 0 & %IsPhone ~ 1 & %MyNavMode ~ 0 ]
Time: From 12:05AM every 5m Till 11:59PM
Enter: Reminder Time To Leave (209)
A1: If [ %AtHome > 0 | %LoudMode > 0 | %HeadsetPlugged > 0 | %BluetoothGym > 0 ]
A2: Say [ Text:Time to leave reminder Engine:Voice:default:default Stream:5 Pitch:5 Speed:5 Respect Audio Focus:Off Network:Off Continue Task Immediately:On Continue Task After Error:On ]
A3: End If
A4: Vibrate [ Time:1000 ]

Profile: Reminder Voice Mail - Phone (221)
Restore: no
Time: From 12:05AM every 15m Till 11:58PM
State: Variable Value [ %BootComplete > 0 & %SilentModeSet < 1 ]
State: AutoNotification Intercept [ Configuration:Event Behaviour: false
Persistency Type: Both
Has Reply Action: false
Notification Apps: Call Management,Phone,Phone,Phone and Messaging Storage
Notification Title: Voicemail (case ins)
Get All Fields : false
Get Internal Actions: false
Get Internal Actions Big: false ]
Enter: Reminder Voice Mail (220)
A1: If [ %AtHome > 0 | %LoudMode > 0 | %HeadsetPlugged > 0 | %BluetoothGym > 0 ]
A2: Say [ Text:Voice mail waiting Engine:Voice:default:default Stream:5 Pitch:5 Speed:5 Respect Audio Focus:Off Network:Off Continue Task Immediately:On Continue Task After Error:On ]
A3: End If
A4: Flash [ Text:Voice mail waiting Long:Off ]
A5: Vibrate [ Time:512 ]








10-19-16_21.41.zip

Steve Rothkin

unread,
Oct 20, 2016, 11:14:52 AM10/20/16
to Tasker
Here's a dump from yesterday morning when I was trying to join a conference call while navigating. It had a lot of delay before the phone would actually show it was trying to dial and even then it never actually connected to the call.
bugreport-NBD90Z-2016-10-19-08-50-25.7z

Steve Rothkin

unread,
Oct 27, 2016, 6:23:38 AM10/27/16
to Tasker
Any progress on fixing this?

Steve Rothkin

unread,
Nov 3, 2016, 6:32:21 AM11/3/16
to Tasker
Here's the latest Tasker and Autonotification logs. You can see events in the run log where at 8:45am I initiated a phone call via Bluetooth from my car's speed dial but the phone didn't actually open the dialer to start dialing that number until 9am.


On Thursday, October 20, 2016 at 11:04:40 AM UTC-4, Steve Rothkin wrote:
11-2-16_09.45.zip

joaomgcd

unread,
Nov 3, 2016, 8:18:35 AM11/3/16
to Tasker
About the crash, can you please try with this version? https://dl.dropboxusercontent.com/u/9787157/apk/AutoNotification.apk

About the Google Maps notifications, can you please try ignoring Google Maps notifications in the main AutoNotification app and see if that makes everything run smooth again?
Thanks and sorry for the trouble.

Steve Rothkin

unread,
Nov 3, 2016, 9:11:15 AM11/3/16
to tas...@googlegroups.com


On 11/3/2016 8:18 AM, joaomgcd wrote:
> About the crash, can you please try with this
> version? https://dl.dropboxusercontent.com/u/9787157/apk/AutoNotification.apk
Only after you fix the Google maps notification

> About the Google Maps notifications, can you please try ignoring
> Google Maps notifications in the main AutoNotification app and see if
> that makes everything run smooth again?
> Thanks and sorry for the trouble.
No. The problem only happens when google maps navigation is running AND
I need those notifications to drive various profile actions when I'm
using navigation.

João Dias

unread,
Nov 3, 2016, 10:15:28 AM11/3/16
to tas...@googlegroups.com
I can't exactly "fix" the notification though. The issue seems to be that Google updates the notification too often and that brings the whole system down. Maybe I can limit it so that it only processes 1 google maps notification every 10 seconds for example..



--
You received this message because you are subscribed to a topic in the Google Groups "Tasker" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tasker/okqBs0jDBbs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tasker+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/tasker.
For more options, visit https://groups.google.com/d/optout.

Steve Rothkin

unread,
Nov 3, 2016, 10:49:35 AM11/3/16
to tas...@googlegroups.com

That would probably be good (maybe 1 every 5 seconds). Maybe a configurable value.

I'd also like to be able to distinguish between notifications for navigation and notifications for other things (e.g. guide tips and maps news/features).

To unsubscribe from this group and all its topics, send an email to tasker+un...@googlegroups.com.

Visit this group at https://groups.google.com/group/tasker.
For more options, visit https://groups.google.com/d/optout.

--
Steve Rothkin (914)762-4566 Check out my professional profile and connect with me on LinkedIn: http://www.linkedin.com/in/stevenrothkin/

Steve Rothkin

unread,
Nov 8, 2016, 6:10:40 AM11/8/16
to tas...@googlegroups.com

Any update?

Steve Rothkin

unread,
Nov 8, 2016, 6:10:53 AM11/8/16
to tas...@googlegroups.com

Any update?

On 11/3/2016 10:49 AM, Steve Rothkin wrote:

João Dias

unread,
Nov 10, 2016, 6:35:19 AM11/10/16
to tas...@googlegroups.com
I've added an option to delay notifications so if a bunch of them come it an once only the last one after the delay will be reported.

Hope this helps

Steve Rothkin

unread,
Nov 10, 2016, 6:53:23 AM11/10/16
to tas...@googlegroups.com

I installed it but I don't see any new option for this. It says version v2.5.21.

To unsubscribe from this group and all its topics, send an email to tasker+un...@googlegroups.com.

Visit this group at https://groups.google.com/group/tasker.
For more options, visit https://groups.google.com/d/optout.

João Dias

unread,
Nov 10, 2016, 7:17:08 AM11/10/16
to tas...@googlegroups.com
In the main app you have a new "Apps Notification Settings" option.

--
Steve Rothkin (914)762-4566 Check out my professional profile and connect with me on LinkedIn: http://www.linkedin.com/in/stevenrothkin/

--

Steve Rothkin

unread,
Nov 17, 2016, 6:28:08 AM11/17/16
to tas...@googlegroups.com

Yes - that fixes the problem. Thank you.

João Dias

unread,
Nov 17, 2016, 6:55:59 AM11/17/16
to tas...@googlegroups.com
awesome :)

Reply all
Reply to author
Forward
0 new messages