'How to discover an UWP WifiDirect Service with an Android device that discovers WifiDirect services?

I would like to build an app that allows an Android Device to connect remotely to an UWP via WifiDirect. The UWP app would advertise a service and the Android app would discover the service and connect to it.

I was able to implement the service discovery logic on the Android app, but couldn't advertise the service on the UWP app because it doesn't seem that it is discovered.

I have tried the Samples provided by Microsoft but it didn't work either. The phone cannot detect and PC and vice-versa.

Can anyone explain to me how to do that? Thanks in advance.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source