iZettle / sdk-android

Add card payments from Zettle to your own app
https://developer.zettle.com/docs/android-sdk
25 stars 21 forks source link

Zettle Card Reader Pairing Problem #99

Closed E-MRE closed 1 week ago

E-MRE commented 2 weeks ago

Expected Behavior

Pairing successfully with card reader device and sale items.

Current Behavior

Kiosk device find card reader, comes pairing code and it confirms but then application goes down. When I try with mobile device, it can pairing and sale successfully. These two android devices have same android version (android 11).

Steps to Reproduce

Open app initialize zettle sdk (android) login via zettle account try to sale using unpaired card reader device. it happen after pairing devices.

Context

We recently purchased a card reader to process transactions with Zettle at a store in the UK. Our goal is to process sales through our own application using the SDK. We have successfully managed the entire process in the test environment. However, when we attempted to start live testing, we encountered an issue.

Specifically, we are unable to pair our Android device with the Zettle card reader we purchased. During the pairing process, we accept the confirmation code, but the SDK forces the application to close. No error message or warning is displayed. We have successfully paired the card reader with our mobile device and have processed sales, but the application closes during the pairing phase on the Kiosk device.

Failure Logs

there is no log.

Video at the attachments.

https://github.com/user-attachments/assets/f8f21227-bc67-440e-b8d2-12607baea2cd

fparmak commented 1 week ago

Hi @E-MRE, From the video it looks like app is crashing. It would be great if you can somehow provide logs. It is really hard to guess what's wrong without it. Also if same app is not crashing in another device, it may indicate something is not working ok on OS level. For example Android Keystore: https://developer.android.com/privacy-and-security/keystore Keystore system is used during pairing process to store keys.

E-MRE commented 1 week ago

Hello @fparmak

I was thinking like you but app not crashing. Because I have a file logger and I use this system with Flutter.onError method. After this error occurred I checked the log file but there wasn't any log in the file.

Also kiosk and another device has same android version (android 11).

By the way I also try connect zettle card reader via example project of iZettle sdk (example project) but it was the same result.

WhatsApp Image 2024-08-30 at 12 29 25

fparmak commented 1 week ago

Hi @E-MRE, Is it possible to get a bug report? https://developer.android.com/studio/debug/bug-report

E-MRE commented 1 week ago

Hello again, maybe crashlytics report helps to understand problem. I'll send also bug report when I got from device.

com.mars.sellina_issue_7edb9ba70c6b977fd2ab3f9411e1d634_crash_session_66D8274201BF000112E127EADEE4B05A_DNE_0_v2_stacktrace.txt

Bug report: bugreport-rk3566_r-RD2A.211001.002-2024-09-04-06-25-53.zip

fparmak commented 1 week ago

Hi @E-MRE, Thank you for the bug report. Seems like same issue with this one: https://github.com/iZettle/sdk-android/issues/85 And unfortunately this crash is coming from OS and we don't have fix for this. We see this it happens mostly on Android 11. So you can try to upgrade Android version.