sample-terminal-ios-app
sample-terminal-ios-app copied to clipboard
Stripe Terminal Pod 1.0.2 should be updated to 1.4.0
This will 1) avoid a "General Bluetooth Error" that occurs with 1.0.2 if you change the DiscoveryConfiguration
(in RRTerminalDelegate.swift) from .bluetoothProximity
to .bluetoothScan
and 2) allow you to then choose from multiple readers in the sample app
To avoid the deprecation warning that results from updating to 1.4.0, you should also update DiscoveryConfiguration initialization from
static let config = DiscoveryConfiguration(deviceType: .chipper2X,
discoveryMethod: .bluetoothProximity,
simulated: false)
to
static let config = DiscoveryConfiguration(discoveryMethod: .bluetoothProximity, /// or .bluetoothScan
simulated: false)