• Login
    • Search
    • Categories
    • Recent
    • Tags
    • Users
    • Groups
    • Rules
    • Help

    Do more on the web, with a fast and secure browser!

    Download Opera browser with:

    • built-in ad blocker
    • battery saver
    • free VPN
    Download Opera

    chrome.notifications in an Opera Extension ...

    Opera add-ons
    1
    2
    1637
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A Former User
      A Former User last edited by

      I am trying to use notifications in my extension. According to the Opera documentation, "Notifications" are supported if "type" is "basic" which my notification is.

      I added a callback and I can see that "chrome.notifications.create()" creates a notification and passes the notification id to the callback function. However the notification never appears and if I use "chrome.notifications.onClosed.addListener()" I can see that my notification is immediately being closed by the system (ie. the "byUser" parameter is "false").

      Why is it doing this and how can I stop it?

      PS. I do have "notifications" in my manifest

      Reply Quote 0
        1 Reply Last reply
      • A Former User
        A Former User last edited by

        *** UPDATE IF YOU HAVE THE SAME PROBLEM ***

        It turned our the problem was Windows "Quiet hours" which was muting the notification the moment you tried to display it, meaning it never actually gets shown to the user. Turn off "Quiet hours" and the notification displays normally.

        Of course this doesn't help much if you're trying to develop an extension because you can't ask the user to turn off "Quiet hours", but at least you know what was causing the problem.

        Reply Quote 0
          1 Reply Last reply
        • First post
          Last post

        Computer browsers

        • Opera for Windows
        • Opera for Mac
        • Opera for Linux
        • Opera beta version
        • Opera USB

        Mobile browsers

        • Opera for Android
        • Opera Mini
        • Opera Touch
        • Opera for basic phones

        • Add-ons
        • Opera account
        • Wallpapers
        • Opera Ads

        • Help & support
        • Opera blogs
        • Opera forums
        • Dev.Opera

        • Security
        • Privacy
        • Cookies Policy
        • EULA
        • Terms of Service

        • About Opera
        • Press info
        • Jobs
        • Investors
        • Become a partner
        • Contact us

        Follow Opera

        • Opera - Facebook
        • Opera - Twitter
        • Opera - YouTube
        • Opera - LinkedIn
        • Opera - Instagram

        © Opera Software 1995-