这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@Epictek
Copy link
Contributor

@Epictek Epictek commented Aug 9, 2018

  • Added ongoing bool extra to implement Termux-notification: Make notification permanent #62

  • Added the alert-once bool extra to avoid having alerts when editing a notification.

  • Added group extra to allow grouping select notifications.

  • Added image-path which requires an absolute path to the image, This half implements Termux-notification: Add image. #60, to actually display on the lockscreen we need to create a media-session and I haven't figured out the best way to handle this yet.

  • Added media style layout specifiable using type extra of value "media", this requires the extras media-previous, media-pause, media-play and media-next to be specified with actions.

  • To make adding additional actions easier the pendingIntent code was turned in to a function to remove a lot of duplicate code,

@Epictek Epictek changed the title Persistent notifications and disable alerts on edits Notification Improvements Aug 9, 2018
@fornwall fornwall merged commit 9c6f99d into termux:master Aug 25, 2018
@fornwall
Copy link
Member

Thanks! This will be available in version 0.27 of the Termux:API app which will be available shortly.

Would you like to add the options to the termux-notification script in https://github.com/termux/termux-api-package? One can check out the repo on a device/emulator for editing&testing it directly.

@Epictek
Copy link
Contributor Author

Epictek commented Aug 25, 2018

Would you like to add the options to the termux-notification script in https://github.com/termux/termux-api-package? One can check out the repo on a device/emulator for editing&testing it directly.

Yeah got lazy with this as bash scripts aren't my favourite thing to work on, Will update the script soon though :)

@ghost
Copy link

ghost commented Mar 7, 2019

@Epictek @fornwall these options are still not in the termux-notification script

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants