How can I get the application name by javascript code in a Windows 8 based app?
EDIT: Being more precise: I want the String in package.appxmanifest -> Application UI -> Display name
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Marco’s answer was helpful, but converting to Javascript proved slightly difficult because of the poorly documented XML namespace requirement. LINQ-to-XML as with XDocument isn’t available in WinJS but was used in Marco’s referenced C# resource.
Here’s how I got the app name. Note that it is asynchronous; AFAIK there is no synchronous way to get the application name.