【问题标题】:Chrome Extension Notification Buttons not showing on MacOs/OSX在 MacOs/OSX 上未显示 Chrome 扩展通知按钮
【发布时间】:2017-06-14 05:00:47
【问题描述】:

我目前正在使用 Notification Api 开发 Chrome 扩展程序。在 Windows 和 Linux 中的 Chrome 上,它工作正常,但在 MacOs / OSX 中,通知显示时没有按钮。我试图查看Chrome Notification API 中的任何信息,但他们没有说明按钮不适用于 MacOS 用户,例如 imageURL 或 appIconMaskUrl 等其他功能。

这是我对扩展的通知声明:

        type: "basic",
        title: message.participant + " has arrived!",
        message: message.description,
        iconUrl: "icon.jpg",
        buttons: [{title:'Go to Project'}]

【问题讨论】:

    标签: macos google-chrome google-chrome-extension notifications


    【解决方案1】:

    AFAIK,来自recent update,将不会使用操作按钮图标,用户需要将鼠标悬停在通知上并选择“更多”按钮以查看可用操作。

    来自GitHub post

    要对通知启用操作(允许用户选择选项的按钮),打开 系统偏好设置 > 通知,选择 terminal-notifer,然后选择“Alerts”警报样式。

    【讨论】:

    • 是的,我最近被告知扩展程序上的更多按钮。谢谢你的回答。
    猜你喜欢
    • 2014-09-17
    • 1970-01-01
    • 2019-12-18
    • 2013-08-17
    • 1970-01-01
    • 2015-11-09
    • 1970-01-01
    • 1970-01-01
    • 2016-07-22
    相关资源
    最近更新 更多