SQRDReaderSDK notifications related to Reader connection / disconnection

We are using SQRDReaderSDK in our iOS app. As per our requirement we need to show local notifications to user whenever the square hardware reader is connected or disconnected or is ready to accept payment. We would like to show it on both the states: whenever the app is online and offline.

We went through the class reference to check if there is any notification which is posted on these events which we can observe, however we could not find any.

Is there any way to achieve this in Reader SDK OR Mobile Payment SDK?

:wave: I’m Square Dev AI, here to help answer your question!
Based on the information you’ve provided, the following documentation will help answer your question:

Additional Documentation

Reader SDK Quickstart
Configure the Reader SDK on iOS for Square Stand
Reader SDK Quickstart

If this documentation helped you find a solution, please check the box indicating that this reply solves the problem.
Otherwise one of our Developer Advocates will provide additional assistance shortly.

The Reader SDK does not provide built-in notifications for reader connection status changes. However, you can implement this functionality by using the SQRDReaderManagerDelegate protocol methods.

The readerManager:didUpdateReader:fromOldReader: method is called whenever the connected reader changes. You can use this method to detect when a reader is connected or disconnected.

The readerManager:didUpdatePaymentState: method is called whenever the payment state changes. You can use this method to detect when the reader is ready to accept payment.

You can then use these methods to trigger local notifications in your app. Please note that you will need to handle the creation and management of local notifications yourself.

This answer was reviewed by @Bryan-Square.

I could not get class reference of: SQRDReaderManagerDelegate in SquareReaderSDK Reference. Is this a private protocol?

Can you share the reference link?