I have an android app which is voip app. When some one call we show a caller screen. This works fine but on some redmi device(Note 7 pro) the caller screen doesn't come if device is locked ie it only play sound.
On debugging I found I need to enable "Show on Lock Screen" permission for the device. Once I enable it it start working as expected. My issue is, I want to improve UI experience by checking this permission at run-time programmatically but unfortunately I am not able to find any thing which can allow me to check this. Is it possible on Redmi device?
As someone who works on Glance (Wallpaper Carousel), which is a product placed on the lock screen of Xiaomi devices, this permission is granted only by Xiaomi. This permission by default is only granted to a set of pre-bundled apps and to get this you need to get your app whitelisted by having it added it to the priv-permission allowlist by Xiaomi.