Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 797
Shivanshu Goyal Avatar asked Apr 03 '17 10:04

Shivanshu Goyal


People also ask

Is Microsoft killing UWP?

Microsoft Officially Deprecates UWP (thurrott.com) 44 In this way, Microsoft can "deliver on the agility and backward compatibility developers need to reach across the entire Windows ecosystem" while not leaving developers behind.

Is Netflix a UWP app?

Teams gets performance boost and new features The official Netflix for Windows 10 app has received a great new feature in its latest update. The app is one of the most popular UWP apps, and one of the few mainstream apps where it is clear to users that it offers a better experience than the website.

Are all Windows Store apps are UWP?

All apps ARE NOT necessarily UWP apps. Windows 8.1 apps do run on Windows 10, just not the other way around. Not every company or indie developer has updated their apps to support UWP. All apps that were previously in the store for Windows Phone 8.1 and Windows 8.1 will still run and be available respectively.


2 Answers

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

like image 122
Stefan Wick MSFT Avatar answered Oct 20 '22 00:10

Stefan Wick MSFT


I recommend the following sample by stefanwick. It's actually 4 parts with details and samples in code and in windows store: https://stefanwick.com/2018/04/06/uwp-with-desktop-extension-part-1/

like image 20
Ali123 Avatar answered Oct 20 '22 00:10

Ali123