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?
Open Settings and tap on Lock screen & password. Tap on Advanced settings here. Select On lock screen. That is where you can decide if you want to receive notifications on lock screen. If yes, do you want to hide its contents or not? Very useful to protect private messages and calls, for example. 6. Battery Settings & MIUI Optimizations
An option in MIUI allows users to choose whether they want to receive notifications when the phone is locked. Open Settings and scroll a little to find Notifications & status bar. Make sure that the Show on Lock screen is toggled on here. On second thought, Show notification icons should also be enabled here. 4. App Specific Notification
Open Settings and scroll a little to find Notifications & status bar. Make sure that the Show on Lock screen is toggled on here. On second thought, Show notification icons should also be enabled here. 4. App Specific Notification Are you receiving notifications for some apps while others simply fail to appear on the lock screen?
To enable it you have to go to the app configuration -> Other permissions -> Show On Lock screen. The full screen activity will also not appear if you have an existing notification with the same id that has not been dismissed.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With