Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I include more than 2 action buttons in chrome notification?

if I include 3 buttons in chrome desktop notification, it is displaying only two buttons, is there a way I can add more than two action buttons ? if not can i implement action list items ? if so kindly let me know.

For your reference : Is there any way to insert action buttons in notification in Google Chrome

like image 229
Pradeep kumar Avatar asked Jun 22 '16 09:06

Pradeep kumar


People also ask

Which Chrome extension API function would be used to make a notification appear in the system tray?

notifications. Use the chrome. notifications API to create rich notifications using templates and show these notifications to users in the system tray.


1 Answers

From chrome.notifications API on buttons property:

Text and icons for up to two notification action buttons.

Hence, it seems that having more than 2 buttons display is not possible with chrome API.

You could use onClosed and onClicked for more control.

like image 136
Božo Stojković Avatar answered Sep 25 '22 03:09

Božo Stojković