ie-web-notifications / ie-web-notifications.github.io

IE Web Notifications (desktop notifications)
http://ie-web-notifications.github.io/
8 stars 2 forks source link

Not working in embedded mode #15

Open rbraband opened 8 years ago

rbraband commented 8 years ago

Thank you for the great work!

But I cant run this Plugin inside the IE emulation mode eg a embedded browser instance inside other applications. Other IE Plugins like AdobePdf or Flash works within. Did you have any hint?

Best

ie-web-notifications commented 8 years ago

Thanks a lot for the response.

As far as I know the embedded browser does not load any addon automatically. However the creator of the application using embedded browser control can add such functionality.

If it's your application I can certainly help to get it working there. Otherwise could you tell the application name, I would like to take a look at it just of curiosity.

Best ragards,

rbraband commented 8 years ago

I have written an custom tab application for cisco jabber on win10. The idea behind is to get customer information on incoming calls direct from SAP/CRM. The cisco jabber GUI loads the page into a custom tab and render it with ie11 embedded.

I use jquery mobile and have testet the page directly with ie11 and the notification works great after permission granted. Inside the embedded tab everything works fine and I get the incoming translated phone number to lookup customer informations, but the notification does not load.

Everything I found for version settings http://weblog.west-wind.com/posts/2011/May/21/Web-Browser-Control-Specifying-the-IE-Version I test the jabber.exe with settings dword 11000 and 11001 but no result.

Thanks for support.

ie-web-notifications commented 8 years ago

Thanks for the information and sorry for long response below :)

Actually there is no any version checks in IE Web Notifications. The possible reasons can be that

Unfortunately I cannot try cisco jabber locally, so the everything I can do right now is to ask to make some research.

There are several ways to check whether cisco jabber at least loads it. First of all I would recommend to start with process explorer and process monitor from Sysinternals. If ie_web_notifications.dll is loaded by the cisco application (it should be visible in process explorer if DLL is not already unloaded) then it seems there are good chances to get it working there. If it accesses the DLL on the file system (it should be visible in process monitor) then one likely need to take a deeper look what is happening there. It can be also useful to take a look at the read registry keys (process monitor), may be the addon must "implement" some category like for enhanced protected mode or for safe scripting. I would also recommend to check the documentation whether it's possible to specify addons (they are also known as browser helper objects) to be loaded into the embedded tab. I have found only http://www.cisco.com/c/en/us/td/docs/voice_ip_comm/jabber/11_6/cjab_b_feature-configuration-for-cisco-jabber/cjab_b_feature-configuration-for-cisco-jabber_chapter_01.html but it does not mention anything like this.

Even if it does not load it as addon automatically there can be still a way to get the functionality. If it's allowed in the embedded WebBrowser control to instantiate ActiveX object using either <object classid="..." or new ActiveXObject() then I can make a couple of quite straightforward modification in the addon. May be AdobePdf can help to answer that question. BTW, flash can be integrated and enabled by Microsoft or by Cisco, so it's not a reliable indicator.

The IE specific code concerns the window hierarchy, the addon searches for parent window with "TabWindowClass". It's used as a parent window for the permission prompting dialog as well as to have a possibility to send/post and receive messages to execute the callbacks withing the correct thread. I'm pretty sure there is no parent window with such class in cisco application. To understand it you can compare two window hierarchies (obtained by Spy++ from visual studio), one for skype (the ad is shown in the embedded WebBrowser) and another one is for IE (basically IE also embeds WebBrowser control in each tab, though it does a lot of work in addition). In most cases WebBrowser control just contains Internet Explorer_Server which actually shows HTML page. I would like to ask to check the window hierarchy for that application. The useful tools are Spy++ and optionally inspect from visual studio ie skype