1

When I develop app that requires overlay view I need to ask for "display over apps" permission almost every time. But Facebook messenger doesn't ask for anything, it just shows this view. Is there a way to do the same?

Rustam Ibragimov
  • 2,571
  • 7
  • 22
  • 33

1 Answers1

0

I was having exactly the same question today. Turns out that Facebook Messenger also needs android.permission.SYSTEM_ALERT_WINDOW window to show chat heads. You might have provided the permission in the past so it will not ask for permission on every installation. You can see 'draw over other apps' permission in Messenger app info, if you will disable it your messages will show in the notification instead of chat heads.see this and this

Mohammed Daoud
  • 202
  • 1
  • 10