I am trying to do a custom device pairing using Raspberry Pi 3 running on windows IoT Core. The official sample provided on github for device Enumeration and Custom Pairing(Scenario 9) https://github.com/Microsoft/Windows-universal-samples/tree/master/Samples/DeviceEnumerationAndPairing/cs works fine on a local machine where we can have user interaction.
But how to do it on windows iot core. Even the sample code says
// Windows itself will pop the confirmation dialog as part of "consent" if this is running on Desktop or Mobile
// If this is an App for 'Windows IoT Core' where there is no Windows Consent UX, you may want to provide your own confirmation.
private async void PairingRequestedHandler(
DeviceInformationCustomPairing sender,
DevicePairingRequestedEventArgs args)
{
switch (args.PairingKind)
{
case DevicePairingKinds.ConfirmOnly:
// Windows itself will pop the confirmation dialog as part of "consent"
//if this is running on Desktop or Mobile
// If this is an App for 'Windows IoT Core' where there is no Windows
//Consent UX, you may want to provide your own confirmation.
args.Accept();
break;
How do I provide my own confirmation? Please help