AutoNotification AN Buttons Notification - Update functionality

Discussion in 'AutoApps' started by JayKay, Nov 17, 2018.

  1. JayKay

    JayKay New Member

    Joined:
    Mar 9, 2018
    Messages:
    29
    Likes Received:
    0
    Hello,

    i want to update an existing button notification.
    At the moment, i always recreate the notification with every update.

    What do i want to do:
    Change the icon/image tint depending on variable status.

    Why is creating the same notification (same ID) a problem:

    1. The notification vanishes and reappears. Since even if i set it to priority to max its not always on the very top (even telegram gets his notifications above xD), it just jumps to the top in my notifications drawer on every update.
    An Update usually occur on pressing the buttons in the same notification.

    2. If there are no other notifications the notification panel always closes on a button-press, because the notification gets destroyed and recreated.

    Any Ideas?

    LG Jay
     
  2. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    The reason it gets destroyed and re-created is that on some android devices there's a bug where the notification contents would be duplicated if I didn't do that.

    I found that workaround and so that's how it works right now... Sorry for the inconvenience!
     
  3. JayKay

    JayKay New Member

    Joined:
    Mar 9, 2018
    Messages:
    29
    Likes Received:
    0
    Okay, i see, thanks for the explanation.
    Would it be possible to enable your "update"-flag in the setup like in your other notification types and set a warning, that it could be a problem on some devices with duplicated images?
    Probably me and some others are lucky and don't get this bug and we can all just not enable it, if it messes our notifications up. xD

    If you dont have time for this idea, i would totally understand!
    Thx for your great work on everything around here!

    LG Jay
     
  4. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Ok, that's a good idea :) I'll try it out when I have the time, thank you!
     

Share This Page