#taha_docs
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1328777309691576412
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hello! To clarify, what specific part of this is blocking you? Where are you getting stuck?
I am unable to receive any callbacks for updates (e.g., onReportAvailableUpdate, onReportReaderSoftwareUpdateProgress)
Is this on Android?
Yes it is on Android
Okay, so do you have a MobileReaderListener set up to receive the onStartInstallingUpdate callback?
Yes, I do have a MobileReaderListener set up in my code. I am passing mobileReaderListener as the usbReaderListener in the ConnectionConfiguration.UsbConnectionConfiguration. I use this configuration when calling Terminal.getInstance().connectReader.
Right, but do you have onStartInstallingUpdate implemented? https://stripe.dev/stripe-terminal-android/external/com.stripe.stripeterminal.external.callable/-mobile-reader-listener/on-start-installing-update.html?query=open fun onStartInstallingUpdate(update: ReaderSoftwareUpdate, cancelable: Cancelable?)
Yes I have onStartInstallingUpdate as well as onFinishInstallingUpdate and onReportReaderSoftwareUpdateProgress
Okay, so you're setting update in your SimulatorConfiguration to REQUIRED and then you call connectReader and your onStartInstallingUpdate function isn't being called?
Yes that is correct.
What have you tried as far as debugging?
I have added logs to see that the reader is connected
Do you have any logging at the beginning of onStartInstallingUpdate? Does that logging ever get called?
Yes I do have a log for debugging right at the beginning of onStartInstallingUpdate and it never gets called
Do your other callbacks in MobileReaderListener get called as expected?
I do receive onBatteryLevelUpdate and others like onRequestReaderInput
Hm, okay, strange. I recommend you file an issue here with exact reproduction steps so the folks who maintain the Android Terminal SDK can investigate: https://github.com/stripe/stripe-terminal-android/issues