Can I get the OS version in WinJS? RRS feed


  • There is no Windows Runtime API to find the OS version. As you note, you can get the version from the UserAgent.

    Using this for analytics is generally reasonable.

    Altering app functionality based on OS version is almost always a bad idea (if there is an exception I can't think of one). Instead use feature detection to determine if features the app requires are available.

    • Marked as answer by Jaxim Tuesday, December 9, 2014 1:27 PM
    Tuesday, December 9, 2014 12:57 AM