termux-notification led not activated (Android 8.1.0, Termux suite from FDroid)
Using LineageOS 15.1 (Android 8.1.0), Termux suite from FDroid.
termux-notification ---led-color FF8800 --led-on 300 --led-off 700 --title Coucou --content "C'est nous !"
Gives me no led blinks at all.
Android 8.1.0 allow to setup colors and blink schemes from Android settings, on a per application basis. Unfortunately, the notifications are coming from Termux:API with is not in the list of configurable applications for this usage (while Termux, and Termux:Boot are…).
I made a small python script to check periodically if the phone gets GSM signal or not, setting a notification if there is no signal, and I wish to have a blinking notification led for that. The whole system is pointed out by Android as consuming too much battery, while my script is mainly a while loop with a sleep(60) in it, and no wake-lock willingly acquired
In the same area, I did set a 0,0,0 vibrate scheme, and still the notification is augmented by Android with a vibration ; one may know that LineageOS used to vibrate when the phone looses signal, and it's exactly the contrary that I try to configure.
Hi, Did you find any kind of solution or workaround?
I asked other Android developpers about how to achieve the "no GSM signal" notification, but using a Python script via Termux wont allow en energy efficient solution. So I'm looking for something else. Maybe an OCaml / Ocsigen solution, as I'm not making things in Java, and would rather learn OCaml than Kotlin, because OCaml is mature and type safe but for lazzy devs (infering types).
This also happens on Android 8.0. It appears that Termux uses the legacy vibration/LED color API, which apparently won't work in 8.0 onwards (there is a new API for that if I remember, but I think it involves notification channels).