Struggling to pair reader to android device

howdy, I’m trying to work on integrating with the mobile payments sdk on android. I’m encountering two issues when pairing though.

I’m not doing anything especially custom with it, just calling the built settingsManager from the sdk and trying to pair a square reader (model SPC1-01)

heres a look at the code, other than the logging out its pretty similar to the code in the documentation example for java

I have two android devices im testing, one is a pixel8 on the android 16 beta. on that device it just hangs on connecting to the reader and eventually times out

I have an older galaxy tablet A7 that is on android 12 and that one actually has a weirder result where it appears to connect, the reader flashes green, in the app i get a pop up to say connected successfully, but then in the list of readers it shows failed to connect. I logged out the state of the connection event to try and learn more but the error im getting is really not telling me much. Ive reset my reader device a couple times now with no change

SquareSDK: Reader Event:

  • Change Type: CHANGED_STATE
  • Reader State: FailedToConnect(reason = [DeniedReason(uxHint=NO_SUGGESTED_ACTION, localizedTitle=‘Reinstallation Required’, localizedDescription=‘Please reinstall Point of Sale.’)])
  • Reader Info:
  • Serial Number: 152LS19302602793
  • Battery Level: BatteryStatus(percent=87, isCharging=true)
  • Connection Status: FailedToConnect(reason = [DeniedReason(uxHint=NO_SUGGESTED_ACTION, localizedTitle=‘Reinstallation Required’, localizedDescription=‘Please reinstall Point of Sale.’)])

do y’all have any thoughts on what else i can try or maybe a common mistake i might have made?

:waving_hand: 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

Build on Android: Point of Sale API
Reader SDK Requirements
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.

i feel like giving me readerSDK resources when im trying to move from that to mobile payments is rubbing salt in my wound here lol

Is your app configured to the following:

  • Your application’s targetSdkVersion is API 33 (Android 13) or a minimum of API 24 (Android 7).
  • Your application’s compileSdkVersion is 34.
    :slight_smile:

We have both targetSdkVersion and compileSdkVersion at 34

does target need to be lower?

Edit: just tried lowering targetSdkVersion to 33 but no luck, same result

Are you in developer mode? :slight_smile:

like on the android devices? yeah, Is that a potential issue?

I’m running the app from android studio so i wouldn’t be able to run it on my devices without putting them in developer mode (as far as i know)

if you know of a straightforward alternative for testing without developer mode though let me know

Yes, readers won’t pair when the app is in developer mode. :slight_smile:

So what do I do? do i have to generate an APK every time i want to test a bit of code?

is that a bug thats being worked on or how does one develop for android for the mobile payments sdk integration?

I did a release build to get a production APK and tested and got the exact same error

its not developer mode, theres something else

What’s your application ID? :slight_smile:

sq0idp-voOBRoYAkf6AWoOD049ULA