Can I open a Windows 8 application with a URL?

I am creating a sharing session application. For example, a private chat session for an application ...

I launched the application and create a “chat room”, then “share” it with someone via email. What I would like to do is create a URL that, when you click on it, opens the application on your computer ... if I invite you to the "chat room".

I bumped into the Internet, but I don’t see this behavior being triggered anywhere.

+6
source share
2 answers

You can do this easily and simply using the metro application by adding a special section to your manifest and making sure that you are processing the correct type of activation in your activation handler.

You can easily add a manifest using the VS editor for manfiest:

  • Open the manifest by double-clicking on it in the solution explorer
  • Select the Ads tab
  • In the "Available Ads" section, select the protocol and click "Add."
  • Set the name field for the desired protocol. like "myawesomeapp" (this will give you URLs like myawesomeapp://foo/bar/baz ).

To process this protocol, you need to look for the activation type "Protocol". This is in your activation handler and in the "View" property. Full information on MSDN is here (prog. Lang. Switch is in the upper right corner) for JavaScript and C # / C ++ / VB.

+5
source

You may have a protocol processing application installed.

http://msdn.microsoft.com/en-us/library/aa767914(v=vs.85).aspx

http://msdn.microsoft.com/en-us/library/windows/desktop/bb266526(v=vs.85).aspx

Since your application must be installed on both computers, both will have a protocol handler.

The protocol handler allows you to define a new protocol name similar to http: or ftp :, and process your application’s requests for that protocol. I once wrote one for Enterprise Architect that allowed users to share diagram links in projects using the ea: // MyProjectName format? Diagram = SomeDiagram.

Here you can check this protocol handler:

http://sourceforge.net/projects/eaprotocol/

+1
source

Source: https://habr.com/ru/post/925083/


All Articles