terminal-js icon indicating copy to clipboard operation
terminal-js copied to clipboard

Turned off reader still appears online after few minutes

Open Cleemn opened this issue 2 years ago • 2 comments

Summary

Version : @stripe/terminal-js@^0.10.1
 Reader: WisePOS E (Version 2.8.4.0) 
Browser : Google chrome

I’m currently working on a stripe terminal integration (BBPOS WisePOS E // javascript - react - react native). I’m encountering some connectivity issues with the terminal.

When I start a new discovery, my paired reader appears online. Then, when I turn off my device, it still appears online on my application for a few minutes.

The method onUnexpectedReaderDisconnect (https://stripe.com/docs/terminal/payments/connect-reader?terminal-sdk-platform=js&reader-type=internet#handling-disconnects) is only called after long minutes and the device’s status is then updated.

Is this normal? Is there a way I can have access to my reader’s status faster?

Other information

Cleemn avatar Oct 26 '22 14:10 Cleemn

onUnexpectedReaderDisconnect should update every minute, is that not your experience? At the moment there isn't a faster way of accessing reader status through the SDK.

nazli-stripe avatar Oct 26 '22 16:10 nazli-stripe

Hey @nazli-stripe, thanks for those details. For now, my reader is disconnecting after approximately 1min30 to 2min.

Cleemn avatar Oct 27 '22 12:10 Cleemn