Notification Listener for 3rd Party app

Great Job. :clap: :clap:. can you please tell when this this extension to be released? :relieved:
Happy new year 4 all :two: :zero: :two: :one:

1 Like

3 posts were split to a new topic: App Inventor question concerning Notification Listener Exension

Asking a profficnal deloveper will give you the right answer thanks Atom-Deloveper for giving me the solution here is the source code working for Kodular (also many thanks to Taifun for his kind shared code which made that possible)
NotificationListener.java (9.4 KB)

And the modification includes also parsing the stacked notification

1 Like

blocks (2)
dont forget to use the name space as per extension as Taifun made it clear
and also notice that parsing stacked notification only works on android 7 +

1 Like

com.atomdeveloper.NotificationListener.aix (11.3 KB)
here is the aix Enjoy
Atom-Deloveper Thanks again

2 Likes

thank you @Atom_Developer
my understanding was, the services annotation still is not available in Kodular?
which means, someone who likes to use the modified extension in Kodular needs to additionally modify the manifest for this to work?

Taifun

2 Likes

The annotation which was added in appinventor sources would not work in kodular because they compile and generate the extension in a different form but I do not use that version to compile the extension, I use a modified version of extension template which eventually adds the required manifest elements to the activities array in the json inside extension,and the appinventor compiler does not do anything with activities string inside json so at last the activities array text is directly added to the app, so it means that if you give any text inside the array, it would be added to the manifest , same goes for broadcastReciever array in the json

So the @UsesServices annotation works differently in my extension template

According to the answer above, no.

3 Likes

I have tested with app but it is showing null value for title:"". Don’t know why. Other apps showing title also. Is it possible to solve. @Atom_Developer

Notification Screenshot

Result

1 Like

maybe its not a title ( its a
Notification.EXTRA_BIG_TEXT

yes. there should be more notification parameters then we can able to fetch complete notifications.

@Atom_Developer Please add more Parameters/Strings to read complete notification.

To add new methods in the extension I think the right way is to contact the developer and be a sponsor for such method :slightly_smiling_face:

1 Like

I Think there is very minor update required to solve this issue. After that Extension will rock…
Because it has unlimited use cases…

1 Like

https://puravidaapps.com/notificationlistener.php

Downloaded .aia file and instaled on my Samsung Galaxy S9+ Android 10.
But app crashed!
So, i remake the new app, block by block, and install.
But app crashed!

Any idea?
@Taifun

my notification listener extension currently only works in MIT App Inventor…
you have to use the adjusted extension version by @Atom_Developer from here (post 50)

Taifun

1 Like

Thanks @Taifun and @Atom_Developer

How to copy image inside the notification?
Anything idea?

this is not implemented
feel free to use the sources of the extension and adjust it to your needs

Taifun

1 Like

Having an issue with retrieving tinydb values (returns empty).

Please excuse my inexperience in advance.

Figured it out after re-reading @khalsaket post.

Needed to use tinydb namespace NotificationListener instead of TaifunNotificationListener