Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How can Microsoft handle URL protocol in the same way as native applications

2025-04-10 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

The purpose of this article is to share with you about how Microsoft can handle the URL protocol in the same way as local applications. The editor thinks it is very practical, so I share it with you. I hope you can get something after reading this article.

In 2020, Microsoft confirmed that it will focus on promoting progressive web applications (PWA) and improving its overall experience on the desktop platform. In all versions of Edge/Chrome, the "Desktop PWA URL handling" experimental Flag has been launched. After taking effect, the PWA application can be registered as the default application that handles custom URL protocols / schemes.

That is, after the Flag takes effect, web applications that allow Chrome and Edge to appear with local Windows applications in the new "Open with" dialog box when clicking on URL protocols such as mailto://, ms-word://, or web+music:/.

In an article by Chromium, Microsoft pointed out that the current implementation of experimental PWA depends on the integration between the browser and the operating system to register new protocols with the operating system. As a result, the open with dialog box appears in the browser's window. Microsoft explained in the new document: "this creates an awkward experience because only the first registered application is' native'to the user, and the subsequent application loses that originality by registering protocol processing management on all Windows surfaces."

Microsoft is now exploring a new way to register additional applications and operating systems so that each installed PWA has its own registry association at the registry level. To facilitate this new behavior, Microsoft will completely separate browser protocol registration from application protocol registration on Windows.

Microsoft said: "this will allow multiple applications to register on Windows to handle the same protocol." as you can see in the screenshot of the "Open With" dialog above, Microsoft's new approach to network application protocol handlers will also support multiple profiles.

"in terms of user experience, this provides customers with a more streamlined experience because applications are now handled entirely on the operating system side and can be ambiguous against browsers, other Win32 applications, other Web applications and themselves, if installed in multiple configuration files," Microsoft said.

The above dialog box will be visible when you install multiple applications for the same URL protocol. For example, if you open and click on a protocol "web+music://songid", this will allow you to choose a web app or desktop app to play the song.

This is how Microsoft can handle the URL protocol in the same way as local applications. The editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report