Display popup windows while running in the background android?

  • Thread starter Android Central Question
  • Start date
A

Android Central Question

I am trying to open an activity from a class that extends Service. I am performing this task when the app is not in foreground/not being used. I can see in the logs that my service class triggered start activity with Intent.FLAG_ACTIVITY_NEW_TASK flag. But the activity does not open. But when if the service triggers the same activity when the app is in foreground/being used, the activity opens.

After few searches I found out that I need to manually give the permission "display popup windows while running in the background android" in the other permissions section in the app settings.

The display over other apps permission SYSTEM_ALERT_WINDOW only gives access to "Display popup window".

How do I check or ask the user to give "Display popup windows while running in the background" permission? or Is this permission restricted?
 

Forum statistics

Threads
943,198
Messages
6,917,753
Members
3,158,872
Latest member
ecstasy89