问题描述:

I'm currently using chrome desktop notifications but at my job they want a larger desktop notifications and chrome notifications has size limits. Is there anyway i can overcome this restriction? Are there any alternative methods i can use to accomplish this?

网友答案:

No, you can't overcome this easily.

Both notification APIs, chrome.notifications and Web Notification, do not allow you to specify the geometry of the notification.

Alternative methods? Sure, everything is possible, but is going to be painful and/or ugly.

You could try showing popup windows with chrome.windows (as that allows you to set geometry), or you could try to add a native host that shows notifications for you using Native Messaging. Both solutions are bad, of course.

相关阅读:
Top