Fixed
Status Update
Comments
lb...@gmail.com <lb...@gmail.com> #2
Hello,
Thank you for reaching out to us.
This report does not contain any description. The
ba...@google.com <ba...@google.com>
ba...@google.com <ba...@google.com> #3
We’ve shared this with our product and engineering teams and will continue to provide updates as more information becomes available.
lb...@gmail.com <lb...@gmail.com> #4
@3 Thank you.
As you reproduce it, please also advice how to check whether indeed the service is running and monitoring notifications.
Maybe offer an Android-x function for this .
As you reproduce it, please also advice how to check whether indeed the service is running and monitoring notifications.
Maybe offer an Android-x function for this .
lb...@gmail.com <lb...@gmail.com> #5
I've requested to have a reliable callback solution for when getting the permission (and when it gets denied) here:
https://issuetracker.google.com/issues/227074779
I hope there is a way to do it for older Android versions.
I hope there is a way to do it for older Android versions.
su...@google.com <su...@google.com>
su...@google.com <su...@google.com> #6
The development team has fixed the issue that you have reported.
lb...@gmail.com <lb...@gmail.com> #7
@6 Fixed how? Fixed where? Any workaround for the Android versions that have this issue?
Description
- Steps to reproduce the problem (including sample code if appropriate).
1. Have a project that prints to logs for a class that extends NotificationListenerService , and let it use NotificationListenerService .
2. Install the app and grant the permission. Notice it indeed monitors notifications (print to logs).
3. Remove the app, and re-install it
- What happened.
The service's onListenerConnected callback is being called, even though the permission wasn't granted yet.
It won't call callbacks about notifications either.
That's despite the documentation about onListenerConnected saying it should only be called when it's enabled :
"
Implement this method to learn about when the listener is enabled and connected to the notification manager. You are safe to call getActiveNotifications() at this time.
"
If you call getActiveNotifications(), you won't get any notification, even though it says it's safe...
- What you think the correct behavior should be.
This callback shouldn't be called yet. Only when the permission is granted.
- Is this a security related issue? Yes/No
Maybe.