AutoNotification Notification count for created/cancelled notifications

Discussion in 'AutoApps' started by Monica yang, Dec 6, 2018.

  1. Monica yang

    Monica yang New Member

    Joined:
    Dec 6, 2018
    Messages:
    2
    Likes Received:
    0
    Hey there!
    I am trying to toggle the always on display based on whether I have outstanding notifications. I am doing this by creating 2 event profiles, one that increments a notification count variable and turns on aod, and one that decrements the notification count variable and turns off the aod if the count is 0. This is all working correctly but the issue I am seeing is that when i get 2 or more notifications for the same app it will trigger the notification created event multiple times but when the notification is dismissed it will only trigger the cancel notification one time. Is there a variable that stores how many notifications were cancelled to use to adjust my notification count? Or is there a way to identify when a certain app already has existing notifications so I know not to increment the notification count again? Or is there a better way of accomplishing my aod toggle altogether?
    Thanks for your time!
    Monica
     
  2. Monica yang

    Monica yang New Member

    Joined:
    Dec 6, 2018
    Messages:
    2
    Likes Received:
    0
    Nevermind, using a state profile seems to work for this better!
     
  3. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Glad you got it! :D
     

Share This Page