How to enable show on lock screen permission in Redmi 5 programatically
Asked Answered
S

0

8

enter image description here

I want to open activity through push notification, but in mi devices it is not opening due to "Show on lock screen" permission of, how to enable this programmatically.

Strategist answered 3/12, 2018 at 7:3 Comment(5)
The question doesn't appear to include any attempt at all to solve the problem.StackOverflow expects you to try to solve your own problem first, as your attempts help us to better understand what you want. Please edit the question to show what you've tried, and show a specific roadblock you're running into with Minimal, Complete, and Verifiable example. For more information, please see How to Ask.Iata
i have used below code for wake lock, working in all devices except xiamoi device getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON | WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD | WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED | WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON);Strategist
With this code not working i have already tried thisStrategist
Did you solve this?Anarthria
Any updates on this ?Oreste

© 2022 - 2024 — McMap. All rights reserved.