NotificationListenerService-Example
NotificationListenerService-Example copied to clipboard
Where is the service started?
Where is the listener service started on the code? I couldn't find it.
It should auto start, but I cannot seems to make the notification listener work in marshmallow, do you have any luck ?
@x4080 hey did u find any solution for the marshmallow issue in my case as well the notification listener is not working in marshmallow.
Hi @lbaiao , @x4080 and @onkarshelke This service ONLY runs if the user Allows it in the settings, otherwise it won't run. if you start it by using 'startService(intent)' It will run as a normal service but it won't receive any callbacks to the methods onNotificationPosted and onNotificationRemoved, so in summary it won't work either
If you have further questions I'd be glad to help