NotificationListenerService-Example icon indicating copy to clipboard operation
NotificationListenerService-Example copied to clipboard

Where is the service started?

Open lbaiao opened this issue 8 years ago • 4 comments

Where is the listener service started on the code? I couldn't find it.

lbaiao avatar Feb 24 '17 14:02 lbaiao

It should auto start, but I cannot seems to make the notification listener work in marshmallow, do you have any luck ?

x4080 avatar Mar 23 '17 03:03 x4080

@x4080 hey did u find any solution for the marshmallow issue in my case as well the notification listener is not working in marshmallow.

onkarshelke avatar May 17 '17 06:05 onkarshelke

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

CarlosACepeda avatar Sep 13 '19 17:09 CarlosACepeda

If you have further questions I'd be glad to help

CarlosACepeda avatar Sep 13 '19 17:09 CarlosACepeda