microsoft / node-uwp

Enables Universal Windows Platform (UWP) API access for Node.js (Chakra build) on Windows 10.
MIT License
152 stars 26 forks source link

Any way to access MSApp? #22

Open RReverser opened 8 years ago

RReverser commented 8 years ago

MSDN page says:

The MSApp object and its members are supported only for Windows Store apps using JavaScript (WWAs). Like many WWA objects, the MSApp object only exists in the local context of a WWA (that is, an HTML document in a WWA loaded via the ms-appx URI scheme); otherwise, the object doesn’t exist (and consequently, none of its methods and properties are available).

It looks like node-uwp doesn't provide access to this MSApp object (at least direct .projectNamespace('MSApp') didn't work for me), and neither it's defined in WinJS that comes with Visual Studio template.

In that case, I'm wondering where is that object defined and whether there is any way to access it via node-uwp.