Android Question SOLVED Notification Library doesn't generate events.

tigrot

Well-Known Member
Licensed User
Longtime User
Hi everybody,
after a long time here I am again. I wanted to read notifications from my surveliance cameras. So I have downloaded the new Notification Listener Library and relative example.
If I press Create Notification the 5 notifcation are created, but now way to read them back. The android phone is v. 14. Any suggestion?
Thank you all!

Mauro
 

tigrot

Well-Known Member
Licensed User
Longtime User
Hi, I have noticed that if I press button "Clear All" or Get Active" i get in unfiltered log "Notification listener service not yet bound.".
This is log.
@set_metadata: update dataspace from GM (0x00000000 -> 0x08010000)
@set_metadata: update dataspace from GM (0x00000000 -> 0x08010000)
@set_metadata: update dataspace from GM (0x00000000 -> 0x08010000)
@set_metadata: update dataspace from GM (0x00000000 -> 0x08010000)
@set_metadata: update dataspace from GM (0x00000000 -> 0x08010000)
@set_metadata: update dataspace from GM (0x00000000 -> 0x08010000)
@set_metadata: update dataspace from GM (0x00000000 -> 0x08010000)
Notification internal service created
Notification listener service not yet bound.
@set_metadata: update dataspace from GM (0x00000000 -> 0x08010000)
@set_metadata: update dataspace from GM (0x00000000 -> 0x08010000)
@set_metadata: update dataspace from GM (0x00000000 -> 0x08010000)
@set_metadata: update dataspace from GM (0x00000000 -> 0x08010000)
@set_metadata: update dataspace from GM (0x00000000 -> 0x08010000)
@set_metadata: update dataspace from GM (0x00000000 -> 0x08010000)
@set_metadata: update dataspace from GM (0x00000000 -> 0x08010000)
@set_metadata: update dataspace from GM (0x00000000 -> 0x08010000)
This happens at both button press and nothing happens.
Regards
Mauro
 
Upvote 0

tigrot

Well-Known Member
Licensed User
Longtime User
Just tested it on an Android 15 device. Works fine.

I did update the example: https://www.b4x.com/android/forum/t...ner-library-notificationlistenerservice.35630
Please try it.

I have updated the source(I was using one old one) . I attach the app I use.
This is my source I'm using(nothing changed). The 5 notifications pop up. But nothing changes. Attached is the unfiltered log.

Really Strange. The phone I use to test is a Redmi Note 12 Pro 5G Android 14. I have rebooted it many times, just to be sure. The permissions are given.

Thank you for your efforts!
Mauro
 

Attachments

  • NotifListener.zip
    11.7 KB · Views: 35
  • unfiltered log.zip
    6.1 KB · Views: 27
Upvote 0

geps

Member
Licensed User
Longtime User
If the notifications get created but you can't read them, maybe the app doesn’t have the right permissions? On Android 14, you have to make sure the notification listener permission is granted in settings. Also, sometimes the app needs to be restarted after granting permissions.
 
Upvote 0

tigrot

Well-Known Member
Licensed User
Longtime User
Hi Erel, found the issue. My version of Android considers a danger to allow notifications read. So you have to unblock the limited autorizations. In Italian "consenti impostazioni limitate".
1000008759.jpg


Thank you very much for support. Permissions management is driving me mad.😁.
Happy week!
Mauro
 
Last edited:
Upvote 0
Top