Comments (2)
@bg-stripe Re-opening this because I'm getting a lot of complaints from end-users that they have to reconnect often. When app is backgrounded, iOS is killing it probably due to memory pressure for some older iPads. I'm properly preserving state everywhere but can't for this. Possible?
from stripe-terminal-ios.
Hi @troypayne,
You'll need to re-initialize the SDK and re-discover your reader when recovering from a crash. The bluetooth connection is broken when the app crashes, and the SDK needs to reconnect using the normal code path.
You also should not archive the Reader objects, but you can save the serialNumber
of the Reader your user is connected to, and auto-connect to the same one when recovering from the crash.
Thanks!
Dan
from stripe-terminal-ios.
Related Issues (20)
- Stripe Reader M2 not connecting after force disconnecting unless app is restarted HOT 2
- collectPaymentMethod failed when user press cancel payment in Tap & Pay HOT 1
- `discoverReaders` calls completion with error when cancelled HOT 1
- Error: SCPErrorAppleBuiltInReaderFailedToPrepare in Tap to Pay Connection HOT 2
- Expose `isAccountLinked` api for Tap to Pay HOT 2
- can not use offline mode after upgrade to 3.2.0 HOT 3
- Regression Bluetooth connect reader SDK Version 3.2 from 3.1 HOT 3
- CollectPaymentMethod returns cancel error, and payment intent got canceled HOT 7
- Wisepad 3 ignores call to cancelCollectPaymentMethod after pulling the card too early HOT 1
- Potential crash connecting to Chippers & M2 readers with SDK 3.3.0
- WisePOS Won't Stay Connected HOT 6
- [Offline] Inconsistent Behaviour with Test Card Taps in the UK
- WisePOS E transactions missing Charge.paymentMethodDetails.cardPresent object when a card is used HOT 5
- Expose additional fields on SCPPaymentIntent HOT 2
- Feature Request: Ability to reset an M2 reader to require an update HOT 2
- Tap to Pay: Intermittent discoverReaders Command Busy Error in SDK Version 2.32.2 HOT 2
- BluetoothConnectionConfiguration - Argument passed to call that takes no arguments HOT 3
- Reader seems frozen due to completion block on `.cancel` being ignored HOT 2
- Unexpected SDK error 5107 HOT 3
- Payment intent was created online, but sdk confirmed intent offline, with wrong confirmed status HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stripe-terminal-ios.