Welcome Guest Search | Active Topics | Sign In | Register

EO Web Browser: running from URL protocol Options
Craig Oliver
Posted: Wednesday, August 5, 2015 12:53:54 PM

Rank: Advanced Member
Groups: Member

Joined: 7/7/2014
Posts: 60
First, some background: we use the EO browser to display our EHR web site (wraps it up with 2ary authentication, and a few other things that are not easily done purely in the web). Normally this is a click-once program, and runs directly on the machine by clicking the shortcut to launch the click-once program. We have some customers who use single sign on (SSO) and launch it via a URL protocol added to the registry (when the program installs, it also updates the registry to handle the URL stuff so that when the gehrimed URL comes in Windows can handle it and launch our Windows launcher by essentially clicking the shortcut). This bypasses some initial things we collect from the user logging in normally, so we use the QueueScriptCall to make some async requests to the web site to get us that info.

Prior to the 2015 release, this was working just fine. For some reason the 2015 release works fine when running directly, but not when loaded via the URL handler (code below). In theory this should be the exact same program - it just loads the same web page from the URL handler rather than our normal sign on service. The EvalScripts are running for both correctly.

Additionally, the resource handler acts the same (and may or may not be related): works as expected when running as a click once, never gets hit running from the URL handler.

Not sure where the issue is yet - we're still testing.

Code: C#
public static void SetShortcut()
        {
            var rKey = Registry.CurrentUser.CreateSubKey(@"Software\Classes\gehrimed");
            rKey.SetValue("", "URL: gehrimed Protocol");
            rKey.SetValue("URL Protocol", "");
            var key2 = rKey.CreateSubKey(@"shell\open\command");
            string shortcut = Environment.GetFolderPath(Environment.SpecialFolder.Programs);
            string exepath = System.Reflection.Assembly.GetExecutingAssembly().Location;
            key2.SetValue("", string.Format("\"{0}\" \"%1\"", exepath));
            key2.SetValue("restart", string.Format("\"{0}\\GPM\\gEHRiMed Launcher.appref-ms\"", shortcut));
            rKey.Close();
            key2.Close();
        }
eo_support
Posted: Wednesday, August 5, 2015 9:04:37 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,229
Hi,

I would recommend you to track to the WebView's Url property. This is where the chain reaction starts. My guess is somehow your application have set the Url property multiple times and due to the aschronrously nature of this property, only one takes effect and which one take effects depends on the timing. I do not think our product interact with any launcher in anyway, so we would recommend to peal that layer away first.

Thanks!
Craig Oliver
Posted: Monday, August 10, 2015 7:20:07 AM

Rank: Advanced Member
Groups: Member

Joined: 7/7/2014
Posts: 60
Thanks - I'll be testing and verifying that today.

Edit: Later that day...

I believe it may have been an environmental issue on our side. Our test environment for single sign on got refreshed with our production code/data and now magically things are working as they should.

So thanks for your time, and I believe this was just user error.

Craig
eo_support
Posted: Monday, August 10, 2015 1:57:50 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,229
Great. Thank you very much for the update!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.