To retrieve incoming notification details from whatsapp in android
How can I retrieve the name, message and time for any incoming notification on "whatsapp". Basically, I want to add up all incoming notification details in an array list. Please help me to get the explained code for the same.
You are trying to catch a 3rd party notification which requires a little more work. This SO question might help you to the right track.
I was able to do this using Accessibility Service . Using this, you can listen to all notification on the notification bar. I listened to application-specification by adding the package name to the Accessibility Service service info , which in this case was com.whatsapp. I couldn't read the messages, but I get notified whenever a message arrives.