Closed Malik056 closed 11 months ago
Sorry, I missed this. There was a second report of this, https://github.com/stripe/stripe-terminal-ios/issues/276. We're able to reproduce the problem and are working on a fix.
closing this issue and leaving #276 open and will post updates there. We have a fix for this scheduled to go out this month in a 3.2.1 release. Thanks again for the report.
Summary
Stripe Reader M2 is not connected again after it is disconnected by turning off the bluetooth of my iPad Air 5th generation (v17.0.3).
Code to reproduce
iOS version
Pad Air 5th generation (v17.0.3).
Installation method
pod 'StripeTerminal', '~> 3.0'
SDK version
StripeTerminal (3.2.0)
Other information
The original problem was the reader sometimes goes unresponsive when it is idle i.e. it is connected but still disconnected. it doesn't signal any disconnect callback and still doesn't work when card is swiped. It gives an error like reader is not connected. So, I tried to narrow down and I found out if I disconnect the reader by turning off my bluetooth (and I have build my configuration as
setAutoReconnectOnUnexpectedDisconnect(false).build()
) the reader doesn't connect. The discoverReader method works fine but the connectBluetoothReader method fails with the following errorCould not connect to the Bluetooth device. Make sure the device is powered on, in range, and not connected to another app or device. If this error continues to occur, you may need to charge the device