paypal / paypal-here-sdk-ios-distribution

Add credit card (tap, insert, swipe & key-in) capabilities to your iOS app
Other
82 stars 91 forks source link

Help with addDisconnectedListener #347

Open DowsingUK opened 3 years ago

DowsingUK commented 3 years ago

Swift code:

cardReader.addDisconnectedListener { (disconnectedError:PPRetailError?) in print("Device Disconnected") }

Console log: [paymentDevice] PayPal Added listener '1234567890' for 'disconnected'. ListenerCount: 5

Project -> Capabilities -> Background Modes -> ON

Enable/Check External accessory communication Uses Bluetooth LE accessories Act as a Bluetooth LE accessory

Bug: It never fires when device is disconnected could you please guide me to do it the right way, thank you.