SocketMobile / cocoapods-capturesdk

CaptureSDK for iOS
Other
6 stars 0 forks source link

Able to connect to S700 Scanner when removing app permissions through device settings #8

Closed ray-predictspring closed 12 months ago

ray-predictspring commented 1 year ago

Hi.

Steps:

1.Launch app 2.Connect Bluetooth socket to app (verify you are able to scan) 3.Device Setting-> POS app -> Disable Bluetooth permission. 4.Kill and relaunch the app

Actual : The socket connects to the app

We went through our code and we are not getting any error for the connection to happen after the Bluetooth permissions have been disabled for our app in the device settings (thus, we are connecting correctly). This is the result of our initialization:

Screen Shot 2023-09-07 at 12 39 48 PM

And this is the delegate call we receive containing the previously connected device.

Screen Shot 2023-09-07 at 12 59 00 PM

Note that in both places, we don'e get an error indicating the permissions disabling on the device

After the connection happens, we are able to scan using the device and get responses from the data retrieved.

Is this expected?

As a side note, checking the companion app, we do see that the scanner status changes when the permissions are disabled for it

Screen Shot 2023-09-07 at 13 02 48 PM

Scanner: S700, SDK version: 1.7.11.64 OS Version iPad OS 15.5

cyrille-socket commented 1 year ago

Hi @ray-predictspring

so the S700 is a Bluetooth Classic scanner so it is not handled by the bluetooth permissions. Those permissions are for Bluetooth Low Energy only from iOS13. So that's normal if you disabled the permissions that the scanner still connects. The SDK is just getting the list of Bluetooth Classic devices from the External Accessory Framework from iOS but we don't manage the connection nor the permissions.

For the Bluetooth Low Energy then, we will make a fix to manage in a proper way the permissions.

Best, Cyrille

ray-predictspring commented 12 months ago

HI @cyrille-socket !

Thanks for the response.