👂 Notification Listener Extension [Open Source]

g'day,

I tried a couple of things

put the app into the background
sent some whats app messages to the phone
still got the same notifications plus another hundred or so as I had my phone on charge overnight

then changed the set TaifunNotificationListener PackageNamesFilter
build reinstall and run again

Removed the set statement completely - had no effect
put back the set statement changed the input to a sting " " - had no effect
changed the input to "test" - had no effect
put back the set statement changed the input back to txtbPackageNamesFilter Text "test" - had no effect

still only getting the android and com.android.systemmui messages

it is as if the PackageNamesFilter was set at the first succesful instance of running the program and it cannot be changed - why that would happen goodness only knows

I am very happy to continue to try and resolve this issue, but, it is not critical to what I am doing, I have an alternative method to get the notifications using Automate for IT, which sees the notification I am after and the sends a text to the phone which I then action with my MIT App Inventor app.

Danke

You can change the filter only before starting the service... while it is running to change the filter does not have any effect... you can click Check to see if the service is running

Uninstall your current version
Rebuild the test project as it is and install it
Open the app and remove all filters
Click Start, enable notification access for the app and click Allow
Close the app
Let some notifications come
Open the app and check what has been stored

Taifun

G'day,

Success

Apart form the program initially having a filter set which was blocking my messages I was focused on the Get button.

The Get button can create a huge great list of things and if the filter string is wrong then of course the messages your looking for don't appear in the list.

In my screwing around I sent a text message and it magically appeared on my phone whilst I wasn't looking as a single item, much head scratching later, I believe I now understand what is going on.

I can receive my push notifications from Reolink and will look at porting some of this app over to my alarm monitor app.

I added a few buttons to your app whilst I was testing
set filter - writes filter string to - TaifunNotificationListener PackageNamesFilter
get filter - gets TaifunNotificationListener PackageNamesFilter - writes it to results label
clearDB tag - its not needed - but I want to cleared the DB and make sure everything was new -
refresh - erases the results label

Thank you very much for your support !

Cheers

image
in the above the filter textbox had been erased and then [set] PackageNamesFilter = ""

Hello, @Taifun can you make the extension version 5 available? I downloaded AIX now, but it is version 4.

You can download the latest version of the notification listener extension in the Download section here

Taifun

I downloaded it from this link, but the download version is 4
Notif

Notif2

now try again
Taifun

1 Like

It worked out! Thanks.
Notif3

Hi, I tried that notificaton listner but didnt work so is there any help or updates?

even open its aia file on my app but didnt work as well

So why the notificatons from aia file attached not working with me?

so why dont see the notifications here when i press get and i gave it the permission?

From your last screenshot it looks like you are using the package name filter... which means, only notifications from my alarmmanager example app and the systemui will be displayed...

???
There is a notification and the system updates it continuously...
unknown
and in the example app you get all recently displayed notifications...
where exactly is the problem?

Taifun

am just creating my first app on mit app inventor and i wanna make notifications for it especially messages

The notification listener listens for notifications from other apps...

to create notifications immediately use 🔔 MelonNotification • Various styled notifications + Itoo

to create notifications at a given time in the future, use the alarmmanager extension

Taifun

A post was merged into an existing topic: Notification Listener (powered by itoox-wrapper) and Itoo

I installed version... I don't know actually, of Taifun's Notification Listener extension: App Inventor Extensions: Notification Listener | Pura Vida Apps

doesn't seem to be working, see the image attached for the blocks, they look different.

I've been trying to get my app working on my new phone, that's all, but seems like no notifications are being detected. On my old phone my original app works perfectly fine.
image

To find out the version of any extension, in the designer click the question mark next to the imported extension

Compared to what?
Try the example project from here

Taifun

To find out the version of any extension, in the designer click the question mark next to the imported extension

TaifunNotificationListener Extension. Version 6 as of 2024-06-29.
Extension Version: 6
Date Built: 2024-06-29

Compared to what?

Well for starters, the when.NotificationReceived, do block used to be purple I think?

I'll check your example project, does it work with Android 15?

It is an event and events have a yellow color

But as the extension is able to also do processing in the background using itoo, there also is an event handler, which looks like a procedure.

How this can be used see this example

It should work for all Android versions starting from API 21, which is Android 5.

Taifun