#Sammmmm
1 messages · Page 1 of 1 (latest)
YES.
which SDK? (iOS/Android/something else)?
web JavaScript @abstract coral
can't you just read the .status field of the Reader object that is returned from the various Promises? https://stripe.com/docs/api/terminal/readers/object#terminal_reader_object-status
or even better ,call https://stripe.com/docs/terminal/references/api/js-sdk#get-connection-status ?
When i switch to other WiFi, the getConnectionStatus method has a high latency, it needs to wait until the heartbeat check times out to get the new connection status.
I believe so, but that's really the only option, you can't change the heartbeat frequency or anything
So, how can I tell the user in real time that your link is disconnect? PLZ~
well if you attempted to do something with the reader like calling collectPaymentMethod and it returns a connection error, then you would know, and you can periodically call getConnectionStatus to check the status every couple of seconds of so on
OK, thank you.