Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Enable "Show on Lock Screen " permission on Redmi device

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?

like image 917
TheGraduateGuy Avatar asked Jan 24 '20 09:01

TheGraduateGuy


People also ask

How to turn on lock screen notifications in Xiaomi Redmi Note 10 Pro?

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

How to enable MIUI lock screen notifications?

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

How to fix notifications not showing on lock screen?

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?

How to enable full screen activity on lock screen on Android?

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.


1 Answers

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.

like image 134
viv3k Avatar answered Sep 19 '22 05:09

viv3k