#zish - Terminal Connection Tokens
1 messages · Page 1 of 1 (latest)
The Connection Token is used to authenticate the Android POS with the reader. If the token is expired it will trigger the TokenProvider to retrieve a new one.
So you are disconnected briefly but if properly implemented the recovery should be graceful and not noticeable.
Oh gotcha! So if disconnected - I should probably handle it the same I would handle onUnexpectedDisconnect where I could reconnect to it?
zish - Terminal Connection Tokens
Do I need to go through the find all available readers step or is that not necessary during this circumstance?
And the circumstance where onUnexpectedDisconnect? I imagine the latter is not necessary
Exactly, it should gracefully handle brief disconnections without requiring the reader discovery process
Sorry for the dumb question haha, but by it do you mean the code from Stripe or my implementation?
^code built into the reader
If you have set up the Connection Token provider
https://stripe.com/docs/terminal/payments/setup-integration?terminal-sdk-platform=android#connection-token
and initialized the SDK to with it
https://stripe.com/docs/terminal/payments/setup-integration?terminal-sdk-platform=android#initialize
then the SDK should handle this for you