Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Turned off reader still appears online after few minutes #56

Open
Cleemn opened this issue Oct 26, 2022 · 2 comments
Open

Turned off reader still appears online after few minutes #56

Cleemn opened this issue Oct 26, 2022 · 2 comments

Comments

@Cleemn
Copy link

Cleemn commented Oct 26, 2022

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

@nazli-stripe
Copy link
Collaborator

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.

@Cleemn
Copy link
Author

Cleemn commented Oct 27, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants