KangoExtensions / kango

Kango framework issue tracker
74 stars 7 forks source link

kango.ui.notifications do not work in firefox #139

Open iamolivinius opened 9 years ago

iamolivinius commented 9 years ago

I tried the following code within a new kango project

function MyExtension() {
    var self = this;
    kango.ui.browserButton.addEventListener(kango.ui.browserButton.event.COMMAND, function() {
        self._onCommand();
    });
}

MyExtension.prototype = {
    _onCommand: function() {
        kango.browser.tabs.create({url: 'http://kangoextensions.com/'});
    }
};

var extension = new MyExtension();

setInterval(function () {
  kango.ui.notifications.show('Notification title', 'Notification text', 'http://kangoextensions.com/images/logos/kango.png', function() {
      kango.console.log('Notification click');
  });
}, 5000)
"permissions": {
    "notifications": true
}

is added to the extension_info.json file.

Works in Chrome but not in Firefox. The documentation does not limit this functionality to specific browsers.

akrylysov commented 9 years ago

What is your OS and Firefox version?

iamolivinius commented 9 years ago

Ubuntu 15.04 and Firefox 40

akrylysov commented 9 years ago

Works fine on Ubuntu 15.04 and Firefox 40 for me. Could you please try to create a new profile?

iamolivinius commented 9 years ago

I created a new profile using the ProfileManager but without any difference. Still no notifications are shown. Nevertheless I noticed a TypeError at the BrowserConsole a few seconds after starting Firefox. Don't know if it's related to this issue.

screenshot from 2015-08-20 11 31 37

iamolivinius commented 9 years ago

BTW, I'm using the latest kango version 1.7.9.