Skip to content
This repository has been archived by the owner on Mar 11, 2019. It is now read-only.

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

Open
iamolivinius opened this issue Aug 18, 2015 · 5 comments
Open

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

iamolivinius opened this issue Aug 18, 2015 · 5 comments

Comments

@iamolivinius
Copy link

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
Copy link
Member

What is your OS and Firefox version?

@iamolivinius
Copy link
Author

Ubuntu 15.04 and Firefox 40

@akrylysov
Copy link
Member

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

@iamolivinius
Copy link
Author

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
Copy link
Author

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants