markusfisch / ShaderEditor

Android app to create GLSL shaders and use them as live wallpaper
https://play.google.com/store/apps/details?id=de.markusfisch.android.shadereditor
MIT License
924 stars 137 forks source link

Features request: Notification detector #136

Closed Saylion closed 6 months ago

Saylion commented 1 year ago

I guest if this feature appear on this apps, more interactive shader will be amazing

zedpoirier commented 7 months ago

Agreed! Even just a simple notification count / binary state would be awesome.

AntonPieper commented 7 months ago

What do you mean by notification detection / counting? Whose notifications should be tracked? Do you have an example use case? It is possible to listen to notifications using NotificationListenerService, though what kind of data would a shader benefit from? Note that string information like the package name etc. cannot be passed to a shader.

zedpoirier commented 7 months ago

My use case would be a very simple "do i have notifications" query. I like making custom wallpapers that display data like battery life, clock time, etc in visually interesting and artistic ways.

Ideally i just want to be able to have the wallpaper look/behave differently if i have a notification or not.

AntonPieper commented 7 months ago

I might look into this on Saturday, this sounds easy enough to integrate (famous last words). maybe a uniform int notificationCount and uniform float lastNotificationTime? I am open for feedback :)

zedpoirier commented 7 months ago

NotificationCount is exactly what i would need! Imagine your wallpaper getting more glitchy / intense the more notifications you have :D

AntonPieper commented 6 months ago

I have got it working now, will create the pull request tomorrow. Still have to figure out how to create the alert dialog before the settings open to guide the user though