AutoNotification First attempt at AutoNotification.. failing

Discussion in 'AutoApps' started by letmedanz, Jul 26, 2017.

  1. letmedanz

    letmedanz New Member

    Joined:
    Dec 10, 2015
    Messages:
    8
    Likes Received:
    0
    Hello there!

    Looking for some assistance with AutoNotification.
    Long time user of Tasker with AutoLocation, new user for AN & ATools.
    Thanks for your work jaomgcd, love it.

    The idea of the (very simle) profile is to trigger a 'hibernate now' action from greenify, when a notification appears stating that a particular app has hibernation pending or postponed.
    In the AN config, I have checked Event behavior, chosen Fill from current & selected the existing notification.
    Also ticked Notification app, and that's it.

    Is there anything further i need to do, cos with this setup AN has never triggered the task to hibernate.
    I have setup a notify task as well for a counter that updates every time the task runs and it has never increased, which indicates the task has never run.

    Screenshot of Notification - https://imgur.com/nbdaY1X (Usually would be 1 app, but since the task did not get run the first time, a second one has been added)
    Screenshot of AN Config - https://imgur.com/gmJdnLu

    Just running the task to hibernate now, works, so no issues with the task.

    Appreciate any assistance!
     
  2. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Can you please export your profile's description (not xml) so I can take a look? Long-click the profile in Tasker->export description Thanks in advance
     
  3. letmedanz

    letmedanz New Member

    Joined:
    Dec 10, 2015
    Messages:
    8
    Likes Received:
    0

    Certainly.
    Profile 1

    Profile: Hibernation Postponed (3)
    Restore: no
    State: AutoNotification Intercept [ Configuration:Event Behaviour: true
    Notification Type: Only Created Notifications
    Persistency Type: Non-Persistent Only
    Notification Apps: Greenify (Donation Package),Greenify ]
    Enter: Auto Hibernate (10)
    A1: Hibernate Now [ Configuration:All greenified apps Timeout (Seconds):0 ]
    A2: Variable Add [ Name:%GCtr Value:1 Wrap Around:0 ]
    A3: Notify [ Title:Hibernation Count Text:%GCtr Icon:null Number:0 Permanent:Off Priority:3 ]

    Similar profile 2 -

    Profile: Hibernation Pending (6)
    Restore: no
    State: AutoNotification Intercept [ Configuration:Event Behaviour: true
    Notification Type: Only Created Notifications
    Persistency Type: Non-Persistent Only
    Notification Apps: Greenify,Greenify (Donation Package)
    Notification App: Greenify
    Notification Title: Apps pending hibernation
    Package Name: com.oasisfeng.greenify ]
    Enter: Auto Hibernate (10)
    A1: Hibernate Now [ Configuration:All greenified apps Timeout (Seconds):0 ]
    A2: Variable Add [ Name:%GCtr Value:1 Wrap Around:0 ]
    A3: Notify [ Title:Hibernation Count Text:%GCtr Icon:null Number:0 Permanent:Off Priority:3 ]

    Thanks
     
  4. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Can you please try creating new profile with the AutoNotification Event condition (not state) and there just select the Greenify app and choose Only Created Notifications. Don't set any other filters.

    Then in the task use the Flash action with %antext
    Then back out of Tasker to save.

    Can you see how that works? Thanks!
     
    letmedanz likes this.
  5. letmedanz

    letmedanz New Member

    Joined:
    Dec 10, 2015
    Messages:
    8
    Likes Received:
    0
    Confirmed working!
    Replaced flash with the hibernate task and as expected that executes as well.
    Thanks for the assist!

    As an added question, at times hibernate task is not successful.
    (As per my counter, it's 2 out of 23 times)
    In this instance, running task again helps.

    Is there a way to run the task if the notification is not cleared after the task is executed?
     
    Last edited: Jul 26, 2017
  6. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    You could have a wait action in the task and then after the wait check if the notification is still there with the AutoNotification Query action :)
     
    letmedanz likes this.

Share This Page