My app has a runtime permission for location. It works fine in the normal cases. But when the phone is in locked state, the system permission popup/dialog does not come. Is it possible to show the system permissions dialog when the phone is in locked state as well?
Asked
Active
Viewed 83 times
0
-
not possible AFAIK – King of Masses Aug 09 '17 at 05:31
-
1https://stackoverflow.com/questions/3629179/android-activity-over-default-lock-screen This might help – Swati Aug 09 '17 at 06:10
1 Answers
2
It is not possible to ask permission when the phone is locked. But you can send a Notification to the user to request permission.
On the click of Notification
open an activity and get a permission from the user.
More info about Notification.https://developer.android.com/guide/topics/ui/notifiers/notifications.html

Bhuvanesh BS
- 13,474
- 12
- 40
- 66