Android “Screen Overlay Detected” message if user is trying to grant a permission when a notification is showing

后端 未结 13 2513
伪装坚强ぢ
伪装坚强ぢ 2020-11-27 14:56

I have Android Marshmallow on a Nexus 6. I am trying to fix the following problem:

If a user is trying to grant permission while a notification is showing, a \"Scree

13条回答
  •  一整个雨季
    2020-11-27 15:24

    As long as Android 6.x is buggy on some devices where this "overlay alert" is displayed without any reason (on 2 to 5% of the devices according to my analytics data), the best solution is to avoid the whole permission process by defining the targetSdk to 22.

    Take care that you can't downgrade the target sdk for a new version or this will induce a INSTALL_FAILED_PERMISSION_DOWNGRADE error when the user updates requiring an unisntall/install of the app.

提交回复
热议问题