UWP Tips & Tricks #2 – How to Enable Windows Runtime access from JavaScript in the Windows 10 Hosted Web App ?

You can interact with the Windows Runtime API from your JavaScript code when the hosted content is app is running as app on Windows 10.

How to Enable Windows Runtime access from JavaScript in the Windows 10 Hosted Web App ?

You need to set the WindowsRuntimeAccess property in the Included ApplicationContentUriRules element of the app package manifest file.

<uap:ApplicationContentUriRules>
      <uap:Rule Type="include" WindowsRuntimeAccess="all" Match="http://developerpublish.com/" />
</uap:ApplicationContentUriRules>

Leave A Reply

Your email address will not be published. Required fields are marked *

You May Also Like

This blog post will guide you through several effective methods to troubleshoot and resolve the issue of Microsoft Edge not...
Windows 11 offers a range of audio enhancements that can enrich your listening experience. These enhancements include features like virtual...
Windows 11 brings a fresh and visually stunning design to your desktop, and one of the standout features is the...