Google Chrome does not show popups if iconized

If the browser is iconized not get the popup on the screen.
Would be enough to have a message in the system tray. How can I do?
Thanks.

Regards

Comments

  • Fop2 will use chrome desktop notifications. But they are changing/deprecating interfaces all the time, so I have to see if they still work or not. So, if you want to see a notification with the brwoser minimized, you must use google chrome.
  • Thanks for the reply.
    Sorry, maybe i did not understand, I used Google Chrome because remember that some time ago it worked even if the popup iconized. Why do you say to use Google Crhome if the problem is just that? What I'm missing?
    Thanks again, Regards.
  • 13/07/2014
    "Thanks for the reply.
    Sorry, maybe i did not understand, I used Google Chrome because remember that some time ago it worked even if the popup iconized. Why do you say to use Google Crhome if the problem is just that? What I'm missing?
    Thanks again, Regards"

    Sorry, I get it. Perhaps you are referring to the use of the Google Chrome Extension, right?
    With the Extension active popup works even if Chrome iconized, but only refers to the list of phone extensions and not to the phone book.
  • I am not sure if I understand the issue then.. when chrome is minimized, desktop notification work but only for some calls? or it does not work at all? Again, google deprecates interfaces both in the browser and their extensions interface, so maybe what you experience is a problem with that deprecation.

    In any case, if it worked before and not now, then check your chrome settings:

    https://support.google.com/chrome/answer/3220216?hl=en
  • Always with Chrome iconized, if not installed "Google Chrome Extension" desktop notification does not work.
    If "Google Chrome Extension" is installed, then it works the notification in the system tray, but does not connect with the phonebook stored.
    Without installing "Google Chrome Extension" using the site FOP2 normally, and Chrome NOT iconized, everything works fine with popup connected to the global phonebook.

    I checked the link above, but the settings are correct : "Allow all sites to show desktop notifications".

    Thanks for your interest and sorry if I was not very clear.
  • I think I am experiencing the same issue but will explain:
    The Google chrome extension popup works even if chrome is minimized, but even if the CID appears in the phone book, the name doesn't appear in the popup, even though the popup in the FOP2 panel itself shows the name.
    Is there any way to fix this?
    Thank you
  • And another issue regarding the same topic, if I have an extension, say 200, and a number in the phone book that ends with 200, on incoming internal calls from 200, it will show the name of the contact from the address book, instead of the internal extension's name.
  • I think I am experiencing the same issue but will explain:
    The Google chrome extension popup works even if chrome is minimized, but even if the CID appears in the phone book, the name doesn't appear in the popup, even though the popup in the FOP2 panel itself shows the name.
    Is there any way to fix this?
    Thank you

    The chrome extension does not use the fop2 phonebook for matching, it shows just the callerid number and name as passed from Asterisk. The phonebook is queried only from the normal browser version using a proxy script named checkdir.php (that script can be modified or tweaked to your needs), while the chrome extension is standalone and does not require any access to that script or perform any other http request (from the extension perspective might need special permissions as it will be taken as a cross site request).

    So, names are only shown on notifications from the web based fop2 version, not the chrome extension.

  • edited September 2014
    And another issue regarding the same topic, if I have an extension, say 200, and a number in the phone book that ends with 200, on incoming internal calls from 200, it will show the name of the contact from the address book, instead of the internal extension's name.

    checkdir.php can be modified to suit your needs... inspecting the mysql query that matches on callerid, if there are multiple maches they are sorted by lenght, thus the shorter extension should appear first. Perhaps you are not running the latest fop2 version and have a previous checkdir.php code?
    $res = $db->consulta("SELECT concat(firstname,' ',lastname) AS name,company,picture FROM visual_phonebook WHERE (phone1 LIKE '%%%s'OR phone2 LIKE '%%%s') AND context='%s' ORDER BY LENGTH(CONCAT(phone1,phone2)) LIMIT 1",$clid_significant,$clid_significant,$context);
    
  • Thank you,
    I added "if (!$clidname)" before the query and put the rest in a block { } and that seems to serve my purpose. If the callerid has a name, (because it's an internal extension), it won't look in the phonebook.

    Would love if the popup would work also when the window is minimized but don't know how to do that yet.
    Will have to look into it.
    If you have something ready or a pointer in the right direction that would be appreciated.
  • The desktop notification behaviour is a browser thing. I am not sure if I will be able to fix it, I will have to look more deeply into it. Unfortunately Chrome desktop notifications api have been deprecated/changed twice already, and it is not yet stable. So anything I can do might cease to work in future releases.
Sign In or Register to comment.