AutoNotification Grouping Notifications

Discussion in 'AutoApps' started by DaveStLou, Jul 31, 2017.

  1. DaveStLou

    DaveStLou New Member

    Joined:
    Apr 25, 2016
    Messages:
    4
    Likes Received:
    0
    I've jumped into using Grouped Notifications which is supported on Android 7 and above.
    I've reviewed your example but I'm not clear on how or when to include the notification marked as "Is Group Summary".
    As I understand it, I need to have at least one notification of the group before I post the Group Summary. I'm using the Query function to look for one of the group notifications.
    Are there recommendations to determine there is only 1 message before I post the Group Summary? I've tried checking if %anid() is empty or %antext() doesn't match "group" but my results haven't been consistent. Sometimes I'm ending up with only the Group Summary notification showing up and no detail notifications.
    Thanks!
     
  2. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    IIRC you can post the group notification regardless if you have other notifications or not :) If you want to group them, simply post both the regular notification and the group summary and you should be good to go.
     
  3. DaveStLou

    DaveStLou New Member

    Joined:
    Apr 25, 2016
    Messages:
    4
    Likes Received:
    0
    It still seems I can only post the group summary once for each time the group appears. If I set the task to post one detail and one summary every time, I get a standalone summary message. So I need a query to check the group summary has been posted before I post it again.
     
  4. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Here's a small test I made.

    Code (Text):
    Test (17)
        A1: For [ Variable:%count Items:1:10 ]
        A2: AutoNotification [ Configuration:Title: hello
    Status Bar Text Size: 16
    Id: summary
    Is Group Summary: true
    Group Key: test Timeout (Seconds):20 ]
        A3: Wait [ MS:0 Seconds:1 Minutes:0 Hours:0 Days:0 ]
        A4: AutoNotification [ Configuration:Title: title %count
    Text: text %count
    Status Bar Text Size: 16
    Group Key: test Timeout (Seconds):20 ]
        A5: Wait [ MS:0 Seconds:1 Minutes:0 Hours:0 Days:0 ]
        A6: End For
     
    In each loop I create both the summary and the normal notification.
    As you can see it behaves as expected :)
    That's what you expect, right?
     

Share This Page