Can I open a Windows 8 application with a URL?

前端 未结 2 2076
既然无缘
既然无缘 2021-02-04 19:43

I am creating an app with a shared session capability. For example a private app-to-app chat session...

I would start the app and create a \"chat room\" then \"share\"

2条回答
  •  萌比男神i
    2021-02-04 19:57

    You can do this easily & simply with a metro application by adding a special section to your manifest, and making sure you handle the correct activation type in your activation handler.

    You can easily add to the manifest by using the VS Editor for the manfiest:

    • Open the manifest by double clicking on it on solution explorer
    • Select "Declarations" tab
    • Under "Available declarations" select protocol, and then click add
    • Set the name field to the protocol you want. e.g. "myawesomeapp" (this will give you urls like myawesomeapp://foo/bar/baz)

    To handle this protocol you need to look for the activation kind "Protocol". This is in your activation handler, and on the "Kind" property. Full details on MSDN here (prog. lang. switch is in the top right) for both JavaScript & C#/C++/VB.

提交回复
热议问题