• 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

    Opera's add-on's notifications don't work?

    Opera add-ons
    2
    10
    1666
    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.
    • nucktrooper
      nucktrooper last edited by

      Hello,
      I've made a Google Chrome extension that works and I would like to propose it on Opera. But when I want to display a notification in Opera, it doesn't work.

      Here is a piece of basic code :

      console.log("start");
      
      chrome.notifications.create("Test",
      {
      	"type": "basic",
      	"title": "Test",
      	"message": "Test",
      	"iconUrl": "./data/notif.png"
      }, function(url) { });
      
      console.log("end");
      

      The resulted log is :
      start
      end

      I don't have any error neither a notification.

      Could anyone help me to display a notification? Thank you.

      Reply Quote 0
        1 Reply Last reply
      • gustavwiz
        gustavwiz last edited by

        I tested this code in the background script of an extension, and it worked. Are you sure you have declared the permission in the manifest? ("notifications")

        Reply Quote 0
          1 Reply Last reply
        • nucktrooper
          nucktrooper last edited by

          Yes, it come from a Chrome extension, so i've did it.

          But i've tried to install other add-on (from other developper) which are supposed to send notification, and it doesn't.

          Is there a settings to enable them?

          Reply Quote 0
            1 Reply Last reply
          • nucktrooper
            nucktrooper last edited by

            In extension settings, it say :

            My extension peut :
            Lire et modifier vos données sur api.twitch.tv
            Afficher les notifications
            [ notifications, https://api.twitch.tv/* ]
            

            Or in english : Use data from api.twitch.tv, display notifications.

            Reply Quote 0
              1 Reply Last reply
            • nucktrooper
              nucktrooper last edited by

              Here is a minimal example i've made : https://drive.google.com/folderview?id=0B4k6nM18722ga2pKOHJlVTBrSG8&usp=sharing

              Could anyone download it and tell me if it works, and if not, how to fix it?

              Thank you.

              Reply Quote 0
                1 Reply Last reply
              • gustavwiz
                gustavwiz last edited by

                It works, totally unmodified.

                Can you tell us the following:

                • What Operating system are you testing on?
                • OS version
                • Opera stream (Stable, Beta or Developer)
                • Opera version
                Reply Quote 0
                  1 Reply Last reply
                • nucktrooper
                  nucktrooper last edited by

                  I'm a on Windows 10

                  Opera 37.0, stable

                  Reply Quote 0
                    1 Reply Last reply
                  • nucktrooper
                    nucktrooper last edited by

                    37.0.2178.32*

                    Reply Quote 0
                      1 Reply Last reply
                    • gustavwiz
                      gustavwiz last edited by

                      I tested your extension on a Windows 10 computer with the exact same Opera version, and it worked. Are you sure you haven't somehow turned off notifications in the Operating system? Perhaps you can test with other extensions, or on some test site that use web notifications.

                      Reply Quote 0
                        1 Reply Last reply
                      • nucktrooper
                        nucktrooper last edited by

                        I've tried to use other extensions that are supposed to send notification and i've got nothing. If i've turned something off, i would not have notification on Chrome and Mozilla.

                        My Opera installation is new, I will try to reinstall it.

                        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-