AutoNotification My simple Whatsapp Notification

Discussion in 'AutoApps' started by Thomas_AR, Jan 1, 2017.

  1. Thomas_AR

    Thomas_AR New Member

    Joined:
    Nov 11, 2016
    Messages:
    2
    Likes Received:
    0
    Good morning, and first off all "happy new year".
    Back to business.
    I have a most simple Profile which intercepts Whatsapp Notifications and tells me (spoken) who send me the Whatsapp message.
    But sometimes i do not check directly the message in Whatsapp. So a second Whatsapp message from a different person is coming in, and Autonotification informs me sometimes that the new message is also from the first person and not as it should be from the second (other person).
    Any way to fix that? I do not want to clear the messages as read in Whatsapp.
     
  2. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    When that happens, what does your notification bar look like? Can you maybe post a screenshot? thanks!
     
  3. Thomas_AR

    Thomas_AR New Member

    Joined:
    Nov 11, 2016
    Messages:
    2
    Likes Received:
    0
    Sorry for the delayed answer, but the problem didn't happened anymore. If, I will post a screenshot.
     
  4. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Great :)
     
  5. Schi11ing

    Schi11ing New Member

    Joined:
    Mar 9, 2017
    Messages:
    5
    Likes Received:
    0
    I have a similar problem. How can i intercept only the newest message from WhatsApp when there are already unread messages?
     
  6. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    @Schi11ing use AutoNotification Query and check the messages that way. Hope this helps
     
  7. Schi11ing

    Schi11ing New Member

    Joined:
    Mar 9, 2017
    Messages:
    5
    Likes Received:
    0
    Thank you for you quick reply, but i have no idea how to do this :(
     
  8. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Ok, what Android version do you use? It's different depending on that :)
     
  9. Schi11ing

    Schi11ing New Member

    Joined:
    Mar 9, 2017
    Messages:
    5
    Likes Received:
    0
    I have Android 6 MM.
     
  10. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Try this:
    Code (Text):
    Test (13)
        A1: AutoNotification Query [ Configuration:Notification Apps: WhatsApp Timeout (Seconds):20 ]
        A2: Variable Split [ Name:%antextlines1 Splitter:=:= Delete Base:Off ]
        A3: Flash [ Text:%antextlines1() Long:Off ]
     
    The Flash in A3 should show you a list of the previous messages. Hope this helps!
     
  11. Schi11ing

    Schi11ing New Member

    Joined:
    Mar 9, 2017
    Messages:
    5
    Likes Received:
    0
    Thank you so much for your help.
    I get now in the Flash "message1=:=message2=:=message3=:=...."
    So, how can i put the last message in a new AutoNotification Notification? I think with a Profile and somthing with %ancomm. I tried a lot, but nothing works. I'm very new to AN and i love it. Can you push me in the right direction?
    Thank you very much.
     
  12. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    You should get "message1,message2,message3,..." though :) Did you do the split and flash %antextlines1() like shown above?
    To create a notification you can use a Variable Set action where you set %text to %antextlines1(<)
    This will set the %text variable to the latest notification text.
    Then use an AutoNotification action with that variable in the Text field :)

    Hope this helps!
     
    Schi11ing likes this.
  13. Schi11ing

    Schi11ing New Member

    Joined:
    Mar 9, 2017
    Messages:
    5
    Likes Received:
    0
    I've set the splitter to ":=:=" :rolleyes:
    Thank you very much for your time and help, it works now.
    Great Developer, great App(s) *thumbs-up*
     
  14. joaomgcd

    joaomgcd Administrator Staff Member

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

Share This Page