fixed #2 - Extra miui permissions Dialog (cancellable => false)#3
fixed #2 - Extra miui permissions Dialog (cancellable => false)#3Anshul1507 wants to merge 1 commit intooddlyspaced:mainfrom
Conversation
|
Hold on with this PR @oddlyspaced, there are other issues related to this. I have tested this code in MIUI 8 (Android 11) and the outcomes are: The issue is here, after allowing this permission when I get back to the app, it again shows me that cancellable second dialog, and the loop goes on if I follow up the flow (Clicking on Dialog to give permission > Allow permission > Back to app > Shows dialog). That infinite loop of second permission dialog is due to showing dialog if the device is MIUI in onResume() method, We can solve this issue by checking if this "display popup windows while running in the background" is given by the user in that else if case of onResume() method. |
|
I have somewhat solved this problem, but I need confirmation of one permission. |
|
Can you possibly check on a device running MIUI 12? Also I specifically made the MIUI Permission dialog not cancellable so that the user can just skip it once they enable the permission. I'm currently exploring a better way to implement it. If you have any ideas feel free to create a PR or share them. |
|
Ohh My bad @oddlyspaced, The device in which I was testing is MIUI 12.5.6 |
Are we using "display popup windows" permission for all kinds of devices? |
|
That particular permission is only limited to miui devices afaik. And the service malfunctioning thing is also miui specific as far as my experience goes. |
Setting Dialog for Extra miui permissions cancellable false to not bypass the permission flow.