#Poutine-Terminal-reader-updates
1 messages ยท Page 1 of 1 (latest)
Hi ๐
Let me take a look
Thanks ๐
Hmmm... those docs appear to not be available....fun ๐
But just so I understand what you're trying to accomplish here, are you trying to listen for available updates but only trigger them manually?
Okay! Got some answers
Mmm kind of. We only want to support updating the reader on our app when connecting to the reader, so am wondering if we can just use updateAvailable instead of having logic on the listener
- It's totally okay to defer the update. Just be aware that firmware updates can take 8-10 minutes
The purpose for the early announcement is to allow installation when it's convenient, rather than required
We've got more info on required vs optional updates here too:
https://stripe.dev/stripe-terminal-android/core/core/com.stripe.stripeterminal/-terminal/install-available-update.html
Right, understand all of that -- perhaps slightly different question, I assume that both Reader.updateAvailable is set to true and onReaderUpdateAvailable happen at the same time, correct?
If onReaderUpdateAvailable is triggered but no action is taken, and then (at a later time) the reader is disconnected, and then (at an even later time) that same reader gets connected, is it fair to assume Reader.updateAvailable is true?
I would say yes to the first assumption and you should try testing the 2nd.
I haven't tried but I'm curious if you could simulate this.
https://stripe.dev/stripe-terminal-android/external/external/com.stripe.stripeterminal.external.models/-simulate-reader-update/-u-p-d-a-t-e_-a-v-a-i-l-a-b-l-e/index.html