AutoNotification Intercepting a group notification

Discussion in 'AutoApps' started by thejonesyboy, Apr 20, 2018.

  1. thejonesyboy

    thejonesyboy New Member

    Joined:
    Apr 6, 2018
    Messages:
    2
    Likes Received:
    0
    When intercepting a cancel operation on a group notification (swiping away a whole notification group at once), AN picks it up as a single intercept and sets %antext to contain all notification titles and texts separated by three spaces on separate lines (and also multiple values within %antextlines()).

    For comparison, a single (collapsed) notification looks like this:
    Gmail
    recipient1 subject1

    When intercepted, %antitle will be set to "recipient1" and %antext will be set to "subject1", which is logical.

    Although, a group (collapsed) notification looks like this:
    Gmail
    recipient1 subject1
    recipient2 subject2

    And from the above, %antitle will be set to "2 new messages" and %antext will be set to "recipient1(three spaces)subject1\nrecipient2(three spaces)subject2".

    This makes sense, given the way the text is displayed in the collapsed notification, but is there any way to process the grouped notifications as inidividual notifications so that it would be easier to get the subject from each notification (rather than splitting the %antext variable with "three spaces" (and newlines) as delimiters)?
     
  2. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    You should receive a different event for each of the cancelled notifications... Are you not getting that? Thanks!
     

Share This Page