AutoNotification Repeated notification

Discussion in 'AutoApps' started by SantiagoM, Feb 7, 2019.

  1. SantiagoM

    SantiagoM New Member

    Joined:
    Jun 12, 2018
    Messages:
    10
    Likes Received:
    0
    Hi Joäo

    I`m having a problem with Autonotification. I have a profile that intercepts WhastsApp notification and it triggers a task that reads the message. The task speaks (“Say” Action) %antittle and % antext variables. The problem is that, sometimes, it reads two or more times the same message.

    If I look into the Log of Autonotification, the message is also repeated with less than a second. The fact is that there is only one message in WhatsApp but Autonotification intercepts it as two and sometimes more notifications.

    The Autonotification profile has this setup:
    Event Behaivor: true
    Notification Type: Only Created Notifications
    Has a Reply Action: true
    Notification Apps: WhatsApp

    My phone is a Samsung S8 Oreo 8.0 not rooted and I’m using the last not beta releases of Tasker and Autonotifications. I have also installed the last not beta releases of Autotools, Autovoice and Autoinput.

    Can you help me?
    Thank you in advance!
     
  2. SantiagoM

    SantiagoM New Member

    Joined:
    Jun 12, 2018
    Messages:
    10
    Likes Received:
    0
    I tried with a cooldown time but no luck. However, I think I found the way:

    A1 If %antext !~ &oldtext
    A2 Says %antitle %antext
    A3 Set variable %oldtext to %antext.
    A4 End if

    So... when I receive a message it is stored as %oldtext. When I receive a new meesage, Tasker only reads it if it´s not the same as %oldtext.

    It has errors of course, because I can have the same text from two diffrerent senders, but it is a beggining. I think I should make an array with the last 5 pairs of %antitle %antext and check if the message (%antitle %antext) is repeated, but my knwledge is limited.
     
  3. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    8,502
    Likes Received:
    720
    Can you please export your profile's description (not xml) so I can take a look? Long-click the profile in Tasker->export description Thanks in advance
     
  4. SantiagoM

    SantiagoM New Member

    Joined:
    Jun 12, 2018
    Messages:
    10
    Likes Received:
    0
    This is the profile's description (it is in spanish :()

    Perfil: Whatsapp Voice (14)
    Cooldown: 1
    Evento: AutoNotification Intercept
    [ Configuración:Event Behaviour: true
    Notification Type: Only Created Notifications
    Has Reply Action: true
    Notification Apps: WhatsApp ]
    Entrada: Whatsapp Voice (70)
    A1: Esperar [ MS:0 Segundos:1 Minutos:0 Horas:0
    Días:0 ]
    A2: Si (if) [ %antext !~ %Textoviejo ]
    A3: Buscar y Reemplazar Contenido de Variable
    [ Variable:%antitle Buscar:...mensajes. Ignorar
    Caso:Apagado Multilínea:Apagado Una sola
    coincidencia:Apagado Almacenar Coincidencias En:
    Reemplazar Coincidencias:Encendido Reemplazar
    Con: ] Si (if) [ %antitle ~R ...mensajes. ]
    A4: Decir [ Texto:Mensaje de %antitle
    %antext Motor: Voz:default:default Stream:
    3 Tono:5 Velocidad:5 Respetar Foco
    Audio:Encendido Red:Apagado Continuar tarea
    inmediatamente:Apagado ]
    A5: Establecer variable [ Nombre:%Textoviejo A:
    %antext Recurse Variables:Apagado Calcular:Apagado
    Añadir:Apagado ]
    A6: Fin si (End if)

    Thank you!
     
  5. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    8,502
    Likes Received:
    720
    Can you please try long clicking the profile > Settings > Set cooldown time to 1 second, then try again? :)
     
  6. SantiagoM

    SantiagoM New Member

    Joined:
    Jun 12, 2018
    Messages:
    10
    Likes Received:
    0
    It is already set the cooldown time to 1
     
  7. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    8,502
    Likes Received:
    720
    What if you set it to 10 seconds?
     
  8. SantiagoM

    SantiagoM New Member

    Joined:
    Jun 12, 2018
    Messages:
    10
    Likes Received:
    0
    I found the problem. The whatsapp´s notification category for messages was set in "urgent" so, until I read the notification, them were repeating. Now I set the notification category to "high" and they are not repeating anymore.

    I think that one or more verbs of the sentence are bad conjugated but this is because of my poor english :(. I speak spanish.

    About the cooldown time, I think that if I set to 10 seconds, I can miss several messages between those 10 seconds, because they are not going to be intercepted.
     

Share This Page