How to determine if my device/firmware supports the BTPairingPolicy SDK components.

I’ve got a Joya Touch 22 running Android 11, and I’m running into a problem with pairing bluetooth devices from my .NET MAUI app using the Xamarin SDK. The app needs to connect to a bluetooth printer and be able to print to that printer. The problem I’m running into is that on the Joya 22, every time the app connects to the printer, even if it is already paired, android is popping up the “Do you want to pair” notification, and even will sometimes show 2 notifications (first I have to hit Connect & pair on a drop-down notification, next I have to hit “Pair” on a pop-up).

I thought that the SDK component BTPairingPolicy would let me get around this, but when I try to access that configuration with the SDK, I am getting back null. I can see the other propertyGroups though, just not the bluetooth one. I am using the latest version of the SDK available on nuget. I’ve also tried setting this policy using Scan2Deploy, and it seems to have no effect.

I would normally think that my device simply doesn’t support silent pairing on this Android 11 build. However, when I pair the printer with Datalogic Queuebuster, which we also use on some devices, that immediately fixes the issue, which makes me thing that Queuebuster is setting this configuration correctly.

Is there a way I can check for certain if this configuration is supported by my device and firmware revision? My current build number is 11.16.004.20241002s.

Hello @Joseph_Smith,

Yes, it is technically possible to check if your device supports BT_PAIRING_POLICY and silent pairing. Using the ConfigurationManager class, you can explore the properties to see if the property exists and if it can be modified.

As reported in the documentation, the BT_PAIRING_POLICY property was introduced in SDK v1.36.

The compatibility table Supported devices of the main Datalogic SDK indicates that the FW of your JoyaTouch 22 (v1.16.004.20241002s) already includes a higher version of the SDK, so BT_PAIRING_POLICY is supported on your device.

In all likelihood, the problem you encountered was due to the fact that the Datalogic MAUI/Xamarin SDK (which is a .NET wrapper created on top of the main Datalogic Android Java SDK) had not been updated for some time, and the previous version (v1.32) did not yet contain the property definitions related to Datalogic BlueTooth Silent Pairing.
When using the older MAUI/Xamarin SDK (v1.32), the Bluetooth configuration group was incomplete, and therefore ConfigurationManager.Instance.GetProperty(PropertyID.BT_PAIRING_POLICY) returned null, because the property simply did not exist in that version of the .NET wrapper.

An update to the Datalogic MAUI/Xamarin SDK has recently been released, which is now aligned with version v1.46 of the main Datalogic Android SDK.

The latest version of the Datalogic MAUI/Xamarin SDK is published on NuGet and can be obtained at this link: NuGet Gallery | datalogic-xamarin-sdk 1.46.0


Regarding the failure of the BlueTooth Silent Pairing system, it is very likely that the problem stems from a missing configuration (whitelist).

Through Scan2Deploy Studio, after activating the “DeviceSettings” page, open the “Network Settings / BlueTooth” node.

As shown in the figure, here you can select:

  • The pairing mode (Pairing Policy → Silent)
  • Enable whitelisting (Enable whitelist → on)
  • Specify your BT device identifier (Device Identifier → “YourDeviceID”)
  • Choose the identifier type (Identifier Type → [Device Name | MAC Address | OUI ID])

After applying these settings, your printer should be able to connect silently to Datalogic devices without any further pairing prompts.

If you still experience issues, I recommend contacting our technical support team and referencing this discussion. This will allow our local technicians to review the case and assist you directly.

You can reach them by submitting a request here:

Let us know if you solve the issue.

Best regards

Simone Callegari
SW Engineer - Mobile Computers L3 Support | Datalogic

1 Like