stripe / stripe-terminal-ios

Stripe Terminal iOS SDK
https://stripe.com/docs/terminal/sdk/ios
Other
104 stars 65 forks source link

Terminal.shared.connectBluetoothReader not responding with callback #313

Closed gssatya closed 4 months ago

gssatya commented 4 months ago

Summary

No callback response with reader info or error from the method Terminal.shared.connectBluetoothReader

I am calling the above method in the DiscoveryDelegate method once a reader is successfully discovered. Even though the reader is successfully discovered, I do not get the callback from the connectBluetoothReader method.

Would be helpful to understand if there is any thread lock on the connectBluetoothReader method.

Code to reproduce

image

iOS version

iPad OS 17.5.1

Installation method

Cocoapods

SDK version

Pod version 3.7.0

Other information

This code was working fine in the production without any issue and stopped working without any changes in the code. Not sure if updating iPad OS version would have caused it.

bric-stripe commented 4 months ago

Does this reproduce 100% of the time? Can you share a serial number and rough timing of a reader that's hitting this? Connecting can sometimes take a few minutes if the SDK has to install a required update for the reader. Your delegate would be informed of that. Can you check if that's what's going on? See update reader docs.

gssatya commented 4 months ago

Yes. You're right. For some reason, the update did not happen in the store. When I connected to my home wifi I could see the logs in the BluetoothReaderDelegate methods to update the software. Post update, it is working fine now.

Thanks for the info. Appreciate it.