android - Can we perform an ACTION programmatically on a Notification from Notification Listener Service? -


Is it possible to apply an action to a program on a notification from the author's service? I have written a notification listener service which reads all the incoming information and when rejected, it is rejected, but I am not sure that we can take any action on the incoming notifications.

For example: I can read package name, sender and message details on a WhatsApp message notification, but is there a way to send an answer back to the sender? At present, Android Ware is doing this, so I am wondering if it is following the general view of working on a notification or there is a specific API for WhatsApp Services.

Once a notification is received through a notification linsar service, another notification has been received. (Hidden) in which there is some tag value that is XXXXXXX@s.whatsapp.net (being a xxxxxxx phonember), I think it somehow holds the key to sending a reply to this user.

I am working on other app logic, for which you do not have to send back the answer but I found this interesting but it did not get enough time to check myself.


Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -