Reputation: 65
is it possible to put event listeners on some specific Whatsapp actions (E.g: play button when receiving an audio or click to download picture)? I want to implement a third-party app with new functions so the user can choose to play or translate the audio to text (if it cannot be played at the moment) and choose where (s)he wants to save the picture. When the user clicks on one of these buttons, an overlay shows up giving the user some options. I thought about using the Accessibility Service but I still don't think it is possible. Btw, using Android platform.
If it cannot be done, would you suggest a way to do it?
Upvotes: 0
Views: 86
Reputation: 3943
No, you can not put any kind of Event Listeners to Whatsapp Application. The events are broadcasted by application only, you are not allowed to listen to any event from the second app unless that Application allows you to. I'm sure you would have got this idea after learning about BroadcastReceivers
(tutorial). But till now, WhatsApp does not provide any events for Third Party Application.
Upvotes: 1