#ronit2582
1 messages · Page 1 of 1 (latest)
Tap to Pay on iOS will always be disconnected when it's running in the background. It will only be re-connected when the application re-enters the foreground: https://stripe.com/docs/terminal/payments/connect-reader?terminal-sdk-platform=ios&reader-type=tap-to-pay#handle-disconnects
so there is no way to prevent it?
I'm afraid disconnecting when running at background can't be prevented
because i am using M2 reader and tap and pay both so i need to make stay connected
Tap to Pay can be connected again after the application runs on the foreground
No problem! Happy to help 😄
one more thing i cannot reconnect when app resume from background
function is didStartReaderReconnect
Are you referring to M2 or Tap to Pay?
didStartReaderReconnect is for bluetooth integration, i.e. M2
Checking it now!
ok
Can you try if this works? https://github.com/stripe/stripe-terminal-ios/blob/master/Example/Example/ReaderViewController.swift#L340
If it doesn't work, can I suggest you writing to Support https://support.stripe.com/contact, so that we can check with product team?
sure let you know
does this method automatically re-connect the tap and Pay
Have you given it a try? If this doesn't work, I'd recommend reaching out to Support https://support.stripe.com/contact, so that they can check with the relevant team for you
yes that doesn't work