cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements
Please note that Remote Expert Mobile announced end-of-life and support will end on February 28, 2022.
437
Views
0
Helpful
3
Replies
Highlighted
Beginner

Can we detect whether CISCO Jabber is installed or not using javascript

How can we detect Cisco jabber using javascript or Jquery.

3 REPLIES 3
Highlighted
Cisco Employee

If referring to detecting whether the Jabber SDK 'Web Communicator' browser plugin is installed, the following code (from cwic.js) might be useful:

try {

    var cwcObject = document.getElementById('cwc-plugin'); // re-select object

    if (cwcObject) {

        // plug-in is available

...

    }

    else {

        throw getError('PluginNotAvailable');

    }

Highlighted

My apology for incorrect explanation. I meant how can we detect CISCO Jabber client using javascript?

Highlighted

I assume that would fall in the general category of detecting installed applications via Javascript.  Not aware of any specific recommendations, but this StackOverFlow thread had some interesting ideas:

http://stackoverflow.com/questions/291704/detect-from-browser-if-specific-application-is-installed

You can probably look in the registry to see what ActiveX/COM objects are installed as part of the Jabber Client, then attempt to load one via JS (obviously you would not be able to really do anything with the COM object, other than immediately unload it) and make a good assumption that the Jabber client is installed or not.

This kind of approach would likely be considered an unsupported 'hack, as the list of ActiveX/COM objects associated with Jabber is not published, and could change UUIDs, etc. potentially change across versions...but it might suffice for your use case.