Open roostaamir opened 7 years ago
Hi @roostaamir, not sure if this is related to let library or the specific permission you're asking.
Can you please check this and this
It seems that you already have an app on your phone with SYSTEM_ALERT_WINDOW permission granted and it's using a screen overlay while you're trying to request WRITE_EXTERNAL_STORAGE permission within your app. And the system does not allow it.
When I try to ask for "WRITE_EXTERNAL_STORAGE" before I initiate a download session using the built-in download manager, the "screen overlay detected" message shows up. Look at the code below:
If you play with the screen and deny the permission one time, and dismiss the "screen overlay detected" dialog, I can then grant the permission. Strangely if I go to settings, disable the permission, and run this method again, it will bring the permission dialog successfully this time (without showing the screen overlay detected dialog)
What is the problem?