iOS SquarePointOfSaleSDK in Swift calls the Square POS app but error log generated

I wrote a tiny Swift app called POSSDKTest2 to charge $1.00 via the api call to Square’s point of sale app. Immediately after it said “Stand Connected” (we have an iPad kiosk and card reader), it kicked back to my app and generated the following error message on my console log:
22-06-24 18:41:01.858010-0400 POSSDKTest2[93250:2584134] [Common] Snapshot request 0x2809716e0 complete with error: <NSError: 0x280952ca0; domain: FBSSceneSnapshotErrorDomain; code: 3; reason: “the request was canceled”>
Does anyone know why this is generated? Thanks!

:wave: That error happens when the payment flow is canceled in the Square app and returns to your app. :slightly_smiling_face:

Thanks Bryan - I discovered it is generated when my app gets dismisses after it is on screen after the Square POS failed.

Glad to hear you figured out the issue. :slightly_smiling_face: