'Bluetooth Low Energy (BLE) - startScan([service]) is not returning devices

I'm using Android and "cordova-plugin-ble-central": "^1.4.4"

The method startScan([]) with empty service is returning devices. But when I add a service no device is discovered.

I tried to connect to one of the devices so that I can be sure that I'm using the right service.

These are the services:

0: "1800"

1: "1801"

2: "6e400001-b5a3-f393-e0a9-e50e24dcca9e"

When I try to call the startScan method with one of the services nothing is discovered



Sources

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

Source: Stack Overflow

Solution Source