Communication channel between a windows app and UWP app 0 Reputation points

I have a UWP project and a Windows app (.NET 5) both installed on the same machine, which will also be the case in production. However, the UWP app is sideloaded and not installed via the Windows Store.

The Windows app retrieves data by listening to a WebSocket Secure (WSS) port. I need to transfer this data from the Windows app to the UWP app and also await a response back from it.

In search of a solution for internal communication, I explored the AppServiceBridgeSamples in the repository However, it appears to be outdated and unusable for my scenario.

Are there any alternative approaches available for achieving this communication? What would be the simplest implementation to accomplish this task?

Any suggestions or comments on this matter would be greatly appreciated.

Universal Windows Platform (UWP)
{count} votes

1 answer

Sort by: Most helpful
  1. Roy Li - MSFT 31,551 Reputation points Microsoft Vendor


    Welcome to Microsoft Q&A!

    Communication channel between a windows app and UWP app

    Currently, the common way to do this is packaging the UWP app together with the windows app via Desktop Bridge and using AppService to communicate between each other. That's what the sample you mentioned does.

    If you don't want to use this approach, another choice is to use socket for communication. Due to the limitation for UWP apps that running in sandbox, there are no other ways to do this expect these two approachs.

    Thank you.

    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments