-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
needsUsageStatsPermission from sample appears to not be working as expected on 7.1 #6
Comments
Hi arenaq, Are you requesting the Usage Stats permission to the user? Even though you have it set in the android manifest, unfortunately it still requires a manual acceptance from the user. In the sample code you may find code to call the relevant activity. Here is what it looks like, taken from this file:
Cheers, |
Yes, that was it. Thank you. Only Or do you have an idea how to fix |
That's odd. Let me take a look at it and I will come back to you. It might take a couple of days, sorry, a bit tight this week in time. Cheers, |
Have you fixed this? I would like to use this library. |
Hi, Sorry for the delay. I tried to reproduce, but it is working correctly. In any case, I have released a new version, 1.1.0. This problem was not addressed but I recommend upgrading. Will keep digging on this issue. Cheers, |
I am using this snippet of yours inside of a service, but I always get
null
as a package name. Testing on Google Pixel, Android version 7.1My permissions look like this:
The text was updated successfully, but these errors were encountered: