Closed tajnymag closed 5 years ago
Meanwhile one can grab some data from dumpsys notification
(root shell required).
Interesting, but that doesn't contain whole content of the notifications. Try grepping the output of "dumpsys notification" with content from Termux's permanent or Messenger's multi-line notification.
However, it's better than nothing. Thank you.
Any news on this? I see there has been a related PR?
It says command not found for termux-notification-get
@T-vK @SwapnilSoni1999
The functionality is available in termux/termux-api thanks to #210 , but someone must implement it in termux/termux-api-package. Meanwhile from within termux you can use /data/data/com.termux/files/usr/libexec/termux-api NotificationList
after granting Termux:API notification access (in android Pie: settings -> apps & notifications -> special app access -> notification access).
@xalexalex thanks alot ❤️
Fixed in version 0.44 of the termux-api package!
Just to let the issue readers know: the command is termux-notification-list
.
Is there a way to retrieve information about the notification's actions?
Would it be possible to query for currently displayed notifications?
It could work as follows:
Result: