You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since an empty array would not do anything, I propose to return nil in the aforementioned getServiceUUIDs method. If developers still want the scanning of an empty array for some reason, they can just pass it along.
EDIT: After reading up on it, there does not seem to be a valid reason to 'scan' for an empty list, as this would not start a scan
The text was updated successfully, but these errors were encountered:
iOS supports the scanning of BLE devices without specifying a service list. This requires
the service list to be
nil
:https://developer.apple.com/documentation/corebluetooth/cbcentralmanager/1518986-scanforperipherals#discussion
However, on this line:
https://github.com/capacitor-community/bluetooth-le/blob/main/ios/Plugin/Plugin.swift#L509
an empty array is used when no services are provided in the call, preventing any possibility to get nil.
Since an empty array would not do anything, I propose to return nil in the aforementioned getServiceUUIDs method.
If developers still want the scanning of an empty array for some reason, they can just pass it along.EDIT: After reading up on it, there does not seem to be a valid reason to 'scan' for an empty list, as this would not start a scan
The text was updated successfully, but these errors were encountered: