Search code examples
uwpwindows-10win-universal-appwindows-10-universaldesktop-bridge

Communication between UWP and Non UWP app


Is it possible to have communication between uwp and non uwp apps. My non-uwp is a background task which provides a service. I want to call that non-uwp service in uwp app.

How to make that call? Is AppServiceConnection class available in non-uwp app?


Solution

  • Yes, non-UWP apps can use AppServices to communicate with UWP apps.

    There is a sample here: https://github.com/Microsoft/DesktopBridgeToUWP-Samples/blob/master/Samples/AppServiceBridgeSample_C%2B%2B/cs/Win32Process_CPP/Win32Process_CPP.cpp