paypal-here-sdk-ios-distribution icon indicating copy to clipboard operation
paypal-here-sdk-ios-distribution copied to clipboard

Re-connect to Bluetooth Card reader

Open danilkurkin1 opened this issue 3 years ago • 1 comments

Coming across the issue where I am trying to reconnect to bluetooth device.

Scenario as follows ->

  1. Start the app and successfully connecting to PayPalReader (PPR)
  2. Disabling bluetooth and getting into routine to reconnect
  3. Enabling Bluetooth and app successfully reconnects to PPR by using ScanAndAutoConnectToBluetoothReader
  4. Disabling bluetooth and getting into routine to reconnect
  5. Enabling Bluetooth
  6. Getting PayPalInterface.OnConnectionComplete error: DEVICE_UNAVAILABLE

from this point I cannot reconnect to reader whatever I do: SearchAndConnect, ConnectToLastActiveReader, SearchAndConnect

when doing SearchAndConnect I am getting list of available devices including PPR, but when select for connecting getting an error - "Sorry, we could't find any available card readers"

Any advice on that?

danilkurkin1 avatar Jun 29 '21 11:06 danilkurkin1