Facebook uses a service to push the messenger bubble on android - something like the follows: http://www.piwai.info/chatheads-basics/
I want to detect when the bubble is opened / closed
I've started investigating the following options -
Listen (By pulling) to the running services - I found out there are 4 services when the messenger is shown and 2 when it's killed. I want to know when the messenger bubble is close so it doesn't help me.
Listen to the notifications - I know when it's removed completely (when user drags it to the 'X' area) - also didn't help.
I'm looking for a hack to know when does the Facebook bubble is opened and when does it closes.