3 ms·
Termux exposes an api as binaries, putting them in `$PATH`, so you can then call them in a any script/program: https://wiki.termux.com/wiki/Termux:API https://w
by dueF7un3 6y ago
Termux exposes an api as binaries, putting them in `$PATH`, so you can then call them in a any script/program: https://wiki.termux.com/wiki/Termux:API https://wiki.termux.com/wiki/Termux:API
It basically give access to most permissions an app can get. The cool thing is that you allow the permission for termux, and then all you scripts can use them.
But yeah indeed, the notif2mail was quite a game changer, for me :) I had a big problem of spam calls/sms at some point, and this allowed me to get my notifications through my spam filter and remove the spam. I also use it to trigger desktop notification when my phone battery is low or full.
EDIT: oh, actually, it's not termux itself, but the addon Termux:API (which is a second app, from Play Store point of view). Also, the command to list notifications is `termux-notification-list`, but it doesn't appear in this documentation page, for some reason. All api executable start with `termux-`, so it's quite easy to list them from the shell.
To start cron when booting the phone, I had also to use an other addon, Termux:Boot : https://wiki.termux.com/wiki/Termux:Boot https://wiki.termux.com/wiki/Termux:Boot