Universal Windows Platform
|Operating system||Microsoft Windows|
|Type||Application programming interface|
UWP does not target non-Microsoft systems. This task is handled by Xamarin.Forms, an open-source API created by Xamarin, a Microsoft subsidiary since 2016.
UWP is a part of Windows 10 and Windows 10 Mobile. UWP apps do not run on earlier Windows versions.
Apps that are capable of implementing this platform are natively developed using Visual Studio 2015, Visual Studio 2017 or Visual Studio 2019. Older Metro-style apps for Windows 8.1, Windows Phone 8.1 or for both (universal 8.1) need modifications to migrate to UWP.
Some Windows platform features in later versions have been exclusive to UWP and software specifically packaged for it, and are not usable in other architectures such as the existing Win32 platform, XAML, and Windows Forms. However, as of 2019, Microsoft has taken steps to reduce the parity between these application platforms and make UWP features usable inside non-UWP software. Microsoft introduced XAML Islands (a method for embedding UWP controls and widgets into non-UWP software) as part of the Windows 10 May 2019 update, and stated that it would also allow UWP functions and Windows Runtime components to be invoked within non-packaged software.
UWP Bridges translate calls in other application programming interfaces (APIs) to the UWP interface, so that applications written in these APIs would run on UWP. Two bridges are announced during the 2015 Build keynote for Android and iOS apps to be ported to Windows 10 Mobile. As of February 2020[update], Microsoft maintains support for bridges for Windows desktop apps, progressive web apps, Microsoft Silverlight, and iOS's Cocoa Touch API.
Windows Bridge for iOS (codenamed "Islandwood") is an open-source middleware toolkit that allows iOS apps developed in Objective-C to be ported to Windows 10 Mobile by using Visual Studio 2015 to convert the Xcode project into a Visual Studio project. An early build of Windows Bridge for iOS was released as open-source software under the MIT license on August 6, 2015, while the Android version was in closed beta.
This "WinObjC" project is open source on GitHub. It contains code from various existing implementations of Cocoa Touch like Cocotron and GNUstep as well as Microsoft's own code that implements iOS frameworks using UWP methods. It uses a version of the LLVM clang compiler.
Windows Bridge for Android (codenamed "Astoria") was a runtime environment that would allow for Android apps written in Java or C++ to run on Windows 10 Mobile and published to Windows Store. Kevin Gallo, technical lead of Windows Developer Platform, explained that the layer contained some limitations: Google Mobile Services and certain core APIs are not available, and apps that have "deep integration into background tasks", such as messaging software, would not run well in this environment.
In February 2016, Microsoft announced that it had ceased development on Windows Bridge for Android, citing redundancies due to iOS already being a primary platform for multi-platform development, and that Windows Bridge for iOS produced native code and did not require an OS-level emulator. Instead, Microsoft encouraged the use of C# for multi-platform app development using tools from Xamarin, which they had acquired prior to the announcement.
UWP is an extension of the Windows Runtime. Universal Windows apps that are created using the UWP no longer indicate having been written for a specific OS in their manifest build; instead, they target one or more device families, such as a PC, smartphone, tablet, or Xbox One, using Universal Windows Platform Bridges. These extensions allow the app to automatically utilize the capabilities that are available to the particular device it is currently running on. A universal app may run on either a mobile phone or a tablet and provide suitable experiences on each. A universal app running on a smartphone may start behaving the way it would if it were running on a PC when the phone is connected to a desktop computer or a suitable docking station.
Games developed for UWP are subject to technical restrictions, including incompatibility with multi-video card setups, difficulties modding the game and using the game with programs such as Fraps, overlays for gaming-oriented chat clients, or key binding managers. UWP will only support DirectX 11.1 or later, so games built on older DirectX versions will not work. During Build 2016, Microsoft Xbox division head Phil Spencer announced that the company was attempting to address issues which would improve the viability of UWP for PC games, stating that Microsoft was "committed to ensuring we meet or exceed the performance expectations of full-screen games as well as the additional features including support for overlays, modding, and more." Support for AMD FreeSync and Nvidia G-Sync technologies, and disabling V-sync, was later added to UWP.
Epic Games founder Tim Sweeney criticized UWP for being a walled garden, since by default UWP software may only be published and installed via Windows Store, requiring changes in system settings to enable the installation of external software (similarly to Android). Additionally, certain operating system features are exclusive to UWP and cannot be used in non-UWP software such as most video games. Sweeney characterized these moves as "the most aggressive move Microsoft has ever made" in attempting to transform PCs into a closed platform, and felt that these moves were meant to put third-party gaming storefronts such as Steam at a disadvantage as Microsoft is "curtailing users' freedom to install full-featured PC software and subverting the rights of developers and publishers to maintain a direct relationship with their customers". As such, Sweeney argued that end-users should be able to download UWP software and install it in the same manner as non-UWP software.
In a live interview with Giant Bomb during its E3 2016 coverage, Spencer defended the mixed reception of its UWP-exclusive releases, stating that "they all haven't gone swimmingly. Some of them have gone well", and that "there's still definitely concern that UWP and our store are somehow linked in a way that is nefarious. It's not." He also discussed Microsoft's relationships with third-party developers and distributors such as Steam, considering the service to be "a critical part of gaming's success on Windows" and stating that Microsoft planned to continue releasing games through the platform as well as its own, but that "There's going to be areas where we cooperate and there's going to be areas where we compete. The end result is better for gamers." Spencer also stated that he was a friend of Sweeney and had been in frequent contact with him.
On May 30, 2019, Microsoft announced that it would support distribution of Win32 games on Microsoft Store; Spencer (who had since been promoted to head of all gaming operations at Microsoft, reporting directly to CEO Satya Nadella) explained that developers preferred the architecture, and that it "allow[s] for the customization and control [developers and players] come to expect from the open Windows gaming ecosystem." It was also announced that future Xbox Game Studios releases on Windows would be made available on third-party storefronts such as Steam, rather than be exclusive to Microsoft Store. 
- "What's a Universal Windows app?". Microsoft Developer Network. Microsoft. May 7, 2018. Retrieved April 29, 2019.
- "Introduction to Universal Windows Platform (UWP) apps for designers". Microsoft Developer Network. Microsoft. May 5, 2018. Retrieved April 29, 2019.
- "Migrate apps to the Universal Windows Platform (UWP)". Microsoft Developer Network. Microsoft. Retrieved July 31, 2015.
- "Move from Windows Runtime 8.x to UWP". Microsoft Developer Network. Microsoft. February 8, 2017. Retrieved April 29, 2019.
- Foley, Mary Jo. "Microsoft wants to close the UWP, Win32 divide with 'Windows Apps'". ZDNet. Retrieved May 8, 2019.
- Hachman, Mark (August 6, 2015). "Microsoft releases iOS-to-Windows app maker Windows Bridge to open source". PC World. IDG. Retrieved October 9, 2015.
- "Universal Windows Platform Bridges - Windows app development". Microsoft Developer.
- Chester, Brandon (April 29, 2015). "Microsoft Demonstrates Android and iOS Applications Running On Windows 10". Anandtech. Purch Inc. Retrieved October 9, 2015.
- Protalinski, Emil (May 1, 2015). "Everything you need to know about porting Android and iOS apps to Windows 10". VentureBeat. Retrieved October 9, 2015.
- "microsoft/WinObjC: Objective-C for Windows". GitHub. Microsoft. February 16, 2020.
- Branscombe, Mary (May 11, 2015). "How will Android support work in Windows 10 for Phones?". TechRadar. Archived from the original on May 19, 2015. Retrieved October 9, 2015.
- Bright, Peter (April 29, 2015). "Microsoft brings Android, iOS apps to Windows 10". Ars Technica. Retrieved October 9, 2015.
- Jo Foley, Mary (February 24, 2016). "Microsoft is buying mobile tool vendor Xamarin". ZDNet. CBS Interactive. Retrieved April 29, 2019.
- Jo Foley, Mary (February 25, 2016). "Microsoft: Our Android Windows 10 bridge is dead, but iOS, Win32 ones moving ahead". ZDNet. Retrieved February 26, 2016.
- Bright, Peter (February 26, 2016). "Microsoft confirms: Android-on-Windows Astoria tech is gone". Ars Technica. Conde Nast. Retrieved April 29, 2019.
- Domingo, Michael (May 1, 2015). "Inside the Universal Windows Platform Bridges". Visual Studio Magazine. Retrieved October 9, 2015.
- Radich, Quinn; Satran, Michael; Whitney, Tyler; Jacobs, Mike; Weston, Susan; Das, Debalin (May 7, 2018). "Guide to Universal Windows Platform (UWP) apps". Windows Developers Center. Microsoft. Retrieved May 10, 2019.
- "Microsoft needs to stop forcing console-like restrictions on Windows Store PC games". Ars Technica. Conde Nast. Retrieved March 30, 2016.
- Hruska, Joel (May 10, 2016). "New Windows 10 updates add support for FreeSync, G-Sync, and unlocked frame rates". ExtremeTech. Retrieved May 10, 2019.
- Makuch, Eddie (March 30, 2016). "Xbox Boss on PC Gaming: "We've Heard the Feedback Loud and Clear"". GameSpot. Retrieved May 10, 2018.
- Walton, Mark (March 4, 2016). "Epic CEO: "Universal Windows Platform can, should, must, and will die"". Ars Technica. Conde Nast. Retrieved May 10, 2019.
- Takahashi, Dean (March 4, 2016). "Epic's Tim Sweeney questions Microsoft's commitment to an open Windows platform". VentureBeat.
- Bright, Peter (June 16, 2016). "Microsoft will use Steam to sell Windows games, not just its own store". Ars Technica. Condé Nast.
- Makuch, Eddie (June 15, 2016). "Xbox Boss Confirms More Steam Releases Coming, Discusses PC Struggles". GameSpot. CBS Interactive.
- Spencer, Phil (May 30, 2019). "Our Approach to PC Gaming". Xbox. Retrieved May 30, 2019.
- Humphries, Matthew (May 30, 2019). "Microsoft Teases Xbox Game Pass for PC". PCMag. Retrieved May 30, 2019.