AutoNotification Clear notifications of the same app one by one

Discussion in 'AutoApps' started by Chapa99999, Nov 2, 2016.

  1. Chapa99999

    Chapa99999 New Member

    Joined:
    Nov 2, 2016
    Messages:
    4
    Likes Received:
    0
    I made a little task to create a copy of the Telegram app notifications, by every notification that I receive from telegram AutoNotification create a copy with the same title and text and with a button to dissmis (I created a variable to assign a different Id to each notification), when I press the "Dissmis" button this call an action and the task AutoNotification>Cancel clear the notification, the problem is when I have multiple notifications created, if I press the "dismiss" button this clear All the notifications created and I just want to delete the one where I press "Dissmis".
    Can someone help me??

    Thanks.
     
  2. joaomgcd

    joaomgcd Administrator Staff Member

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

    Chapa99999 New Member

    Joined:
    Nov 2, 2016
    Messages:
    4
    Likes Received:
    0
    I'm sorry I am not to good with Tasker even no to good with my phone =), here are the profiles

    Profile: Intercept Tasker1 (5)
    Event: AutoNotification Intercept [ Configuration:Event Behaviour: true
    Notification Type: Only Created Notifications
    Persistency Type: Non-Persistent Only
    Has Reply Action: false
    Notification Apps: Telegram
    Get All Fields : true
    Get Internal Actions: false
    Get Internal Actions Big: false ]
    Enter: Flash Telegram (6)
    A1: Torch [ Set:On ]
    A2: Wait [ MS:500 Seconds:0 Minutes:0 Hours:0 Days:0 ]
    A3: Torch [ Set:Off ]
    A4: Wait [ MS:500 Seconds:0 Minutes:0 Hours:0 Days:0 ]
    A5: Torch [ Set:On ]
    A6: Wait [ MS:200 Seconds:0 Minutes:0 Hours:0 Days:0 ]
    A7: Torch [ Set:Off ]
    Exit: Create Autonotification (15)
    A1: AutoNotification [ Configuration:Use HTML: false
    Title: %antitle
    Text: %antext
    Status Bar Text Size: 16
    Id: %Variable_notif1
    Is Group Summary: false
    LED Color: red
    LED On: 1000
    LED Off: 500
    Skip Picture Cache: false
    Button 1: Dismiss1
    Label 1: Borrar
    Button 2: Dismiss2
    Label 2: %Variable_notif1
    Update Notification: false
    Only on Phone: true Timeout (Seconds):2 ]
    A2: Variable Add [ Name:%Variable_notif1 Value:1 Wrap Around:0 ]
    __________________________________________________________________________________________________
    Profile: Autonotification Event To Clear Notification (3)
    Event: AutoNotification [ Configuration:Event Behaviour
    Filter: Dismiss1 ]
    Enter: Clear1 (19)
    A1: Vibrate [ Time:319 ]
    A2: AutoNotification Cancel [ Configuration:Cancel All: false Timeout (Seconds):0 ]

    Thanks
    Carlos.
     
  4. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Just a question: why aren't you swiping the notification away to cancel it? Why would you need a dismiss button exactly? Thanks
     
  5. Chapa99999

    Chapa99999 New Member

    Joined:
    Nov 2, 2016
    Messages:
    4
    Likes Received:
    0
    Jejeje that’s a good question

    All this little experiment started because I use Wunderlist app as my principal scheduler and reminder of payments, some of the reminders appears in the Notifications bar before 7 or 10 days of the due date, I did this because I want to have some kind of alert in my phone to remind me that I need to pay something. The problem begun when sometimes by mistake I delete the Wunderlist notification, happened this I run out any alert that remind me that I need to pay something. That’s when I started to think in Tasker, make a task that catch the title and the text of the Wunderlist notification and create with AutoNotification a clone, this clone need to have two things: Have the title and text of the Wunderlist notification and need to be persistent, why persistent because this way I can’t delete the notification by mistake and in order to make this possible I thought in a “Dismiss” button to clear or cancel that notification once the task was completed (I mean when I made the payment). That’s the reason of started this experiment, I decided to use Telegram app because it’s a quickly an easy way to create notifications, once finished the Task (If I ever finish) am gonna change the code just to catch Wundelist notifications instead of Telegram.
    That’s the reason of all of this, any help would be great.

    Thanks
     
  6. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806

Share This Page