Registering for a Protocol Association

,

Registration of a protocol association is achieved using your app’s WMAppManifest.xml file. To edit the WMAppManifest.xml file, in the Visual Studio Solution Explorer, right-click the WMAppManifest.xml file and then select View Code.

A protocol association is declared using a Protocol element, as shown in the following excerpt:

<Extensions>
  <Protocol Name="unleashed"
            NavUriFragment="encodedLaunchUri=%s" TaskID="_default" />
</Extensions>

The Protocol element includes the following three mandatory elements:

Image NameThe prefix in your custom URI scheme. The value of Name must be a string between 3 and 39 characters in length and may contains numbers, lowercase letters, or a hyphen (‘-’).

Image NavUriFragmentMust always be specified as encodedLaunchuri=%s

Image TaskIDMust always be specified as _default


Note

A maximum of 10 protocol associations can be registered in an app.


..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.144.84.175