Notification Listener (powered by itoox-wrapper) and Itoo

Thank you... however it is an App Inventor extension, not a browser extension... :sweat_smile:

the itoo extension declared the permission SCHEDULE_EXACT_ALARMS in the manifest without using it. @Kumaraswamy removed that permission in the latest version of the itoo extension. Thank you @Kumaraswamy ! I now updated the example project in post 1 (version 2a) Notification Listener (powered by itoox-wrapper) and Itoo.

Taifun

2 Likes

5 posts were merged into an existing topic: :ear: Notification Listener Extension [Open Source]

Hi, @Taifun . 'Notification Listener Extension' works well with the 'Itoo' extension and it store count value and notification value in firebase successfully. But when i restart the phone, Itoo extension is auto running and the count value is successfully stored in firebase. But the notification extension is not working automatically. If i open the app again, its working properly. Can you provide me any solution? Thanks.

Test project file:
notiSim.aia (645.2 KB)
Project blocks:

Yes, the service does not start itself after reboot

The user needs to explicitly allow notification access, therefore I thiink, it will not be possible to do this automatically after rebooting

Taifun

1 Like

Buenas tardes, hice un proyecto con esta extensión y me funciono perfecto, capturaba las notificaciones entrantes de mi teléfono sin problemas, pero después de unos días, dejó de escuchar las notificaciones que entran a mi teléfono.
Descargue el proyecto de ejemplo de ustedes y tampoco captura las notificaciones entrantes.
Ejecuto el StarService sin problema alguno, luego ejecuto el bloque check service y siempre me devuelve FALSE.
pueden ayudarme con esto por favor?

Please try the example project a few days and let us know how it works for you...

It might be, your device tries to save system ressources and therefore terminates the service after a few days?

Which Android device and version are you using for your tests?

Additionally you might want to use

Taifun

Muchísimas gracias, gracias a tu información se me ocurrió revisar mi teléf. y pude ver que tenia muy poco espacio, por esta razón supongo que entro en modo de ahorro de recursos, libere espacio y volvió a funcionar.

Saludos.

hi, how can I enable and disable Notification listener?

For example,

If global.variable=0, then NotificationListener.Enabled=True

elseIf global.variable=1, then NotificationListener.Enabled=False

How can I achieve this?

only functionality is available, which is described in the documentation, everything else is not available.

To stop the service, just call method StartService for the user. The user then must disable notification access in the settings manually... see how it is done in the example app..

As the notification listener extension is open source, you are invited to investigate, if stopping the service programmatically is doable. If yes, you are invited to implement that functionality into the extension.

more information about how to create an extension see the App Inventor Extensions document however that will be more advanced and will require some Java skills...

Taifun


Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by icon24 Taifun.

1 Like

I will try to update the extension codes in future so I can make & utilize more features. But, for now, somehow, I will find some shortcut ways and achieve this.

UPDATE: I am trying using the clock. I put the 'startService' block of notification listener within when.clock.timer. Now, I can enable or disable this block based on the value of the global.variable. But, I have not tested this yet.

Great sharing! The example app which can read out notification should be helpful to those people with impairing vision.

I have a query regarding the features of the extension. Is it possible to get the "pending intent" underlying a notification.? Normally if we click on an Android notification, it usually brings us to a page / app with that directly link to the notification. I hope I could get the above via the extension.

Thanks again for the generous support!

I do not think that this is possible...
I did a quick search and could find only this

If you find something, a code snippet or hints how to do it just let me know...

Also the extension is open source and everyone is invited to further improve it

Taifun

Hi, I made your example and it works fine, but I would like to know how to make it so that a persistent notification is displayed that lets the user know that, indeed, the application is running in the background. Thanks

The example displayed here does not use a foreground process. It simply calls the procedure in background when the Android system notifies the Notification Listener Service. So you do not need to show a persistent notification.

If you still want to, you can use Melon Notification v1.2. While building a new notification check the Ongoing property to make the notification permanent.

2 Likes


Hello, I have this problem where the Itoo process is not working, this is a food spoilage application. What I want to do is whenever the value fetch from the firebase will go beyond a certain thresholds It will alarm and notify the user. The problem is Even when I put the process in the button or the Screen.2 initialize it does not even work




For reference this is the UI

Is there a Clock2 in your project?
Try to register the Clock1.Timer event

Taifun

1 Like

Oh yes! I have fixed it A lil bit its working now, what I have done is I call the Itoo.Createprocess block in the first screen which is the main landing page. then everything just works

1 Like

This is Screen 1
image

This is Screen 2

I have encountered Another problem. when I cancel the process the process dont restart even when the logic is met.

Use your procedures for background processing only on one screen
And remember, there is no user interface available in the background, so Notifier1.ShowAlert will not work in the background

Taifun