Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Custom Scheme Registration?
#1
Question 
Hi Wil,

We are using a custom protocol handler in our application and are currently greeted by the security/safety dialog asking the user to allow use of our custom protocol / scheme. Microsoft added support to register custom scheme into the WebView2 control and I'd like to know whether you are going to expose that functionality in AntView already or in a future version?

https://learn.microsoft.com/en-us/dotnet....0.1661.34

This is related to the protocol_handler approach for PWA manifests.

For reference, please see WebView2 Feedback github: #1825 with last comment " Fixed in runtimes 110.0.1531.0+ "

I'm using AntView 1.1.270 with "Last Version" of WebView2 runtime 111.0.1661.62

If the user ticks the checkbox WebView2 runtime adds an entry for the custom scheme to the Preferences file:
Code:
    "protocol_handler": {
        "allowed_origin_protocol_pairs": {
            "file://": {
                "customscheme": true
            }
        }
    },

I've seen that there would be a workaround using On[Frame]NavigationStarting() as mentioned here WebView2 Feedback github: #384 - however I'm not too keen to implement this. Or perhaps more likely to say that the pain is not high enough to take that approach. Big Grin
Thanks in advance and best regards, Jochen

"The only frontiers are in your mind."
Reply


Messages In This Thread
Custom Scheme Registration? - by jkirstaetter - 2023-03-31, 13:00:53
RE: Custom Scheme Registration? - by wila - 2023-03-31, 15:12:52
RE: Custom Scheme Registration? - by jkirstaetter - 2023-04-13, 10:22:59
RE: Custom Scheme Registration? - by wila - 2023-04-13, 11:37:47

Forum Jump:


Users browsing this thread: 1 Guest(s)