I'm coding an android app that needs to start an activity in the background.
On XiaoMi device, my app must be accepted "Displaying popup windows while running in the background" permission to do that.
However, I don't know when this permission is granted to guide users to accept it. Is there any solution to check this permission is granted or not?
Thanks
Reposting my previously deleted answer once again
Here is a working way to find out if it's granted (tested on MIUI 14.0.3)
You can find an even more detailed code here: https://github.com/zoontek/react-native-permissions/issues/412#issuecomment-1590376224