sumup / sumup-android-sdk

Sample App for the SumUp Android SDK
Other
105 stars 28 forks source link

Major Issue - Terminal is not found and must be select manually #161

Open vladaman opened 3 years ago

vladaman commented 3 years ago

In version 3.3.2 we are experiencing random issues when SumUp terminal is not found. Previous SDK had no issue like this.

For example, we call SumUpAPI.checkout(), user is asked to identify and pair terminal. Payment goes through. Then we send second payment, terminal is not found, we click on right/top blue icon, select same terminal again and the payment goes through.

Basically user needs to constantly find his device and then continue with payment. Sometimes it works fine, for example 2-4 payments are without this and then again, terminal is not being found.

Observation:

radek3911 commented 3 years ago

I am experiencing similar behavior. Sometimes the SDK does not detect terminal presence and sometimes it works even when the terminal is powered off. If it helps my terminal number is: 106011304884

vladaman commented 3 years ago

Here is what we see in logs:

07-02 14:53:31.979   599   651 I ActivityManager: Displayed com.myapp/com.sumup.merchant.reader.ui.activities.CardReaderPaymentAPIDrivenPageActivity: +388ms
07-02 14:53:39.035  9544 10094 W SumUp   : (SourceFile:112)@BtSmart-Receiver | BluetoothAdapter not initialized
07-02 14:53:39.137  9544  9544 E SumUp   : (SourceFile:153)@main | onTransportError() CardReaderError{Name = TRANSPORT_ERROR mErrorCode=3}
07-02 14:53:39.141  9544  9544 W SumUp   : (SourceFile:62)@main | Tried to start event, but last event was not finished
07-02 14:53:42.920  9544  9544 W SumUp   : (SourceFile:112)@main | BluetoothAdapter not initialized
07-02 14:53:43.023   599 29032 I ActivityManager: START u0 {cmp=com.myapp/com.sumup.merchant.reader.troubleshooting.ui.BtTroubleshootingActivity (has extras)} from uid 10057 on display 0
07-02 14:53:43.292   599   651 I ActivityManager: Displayed com.myapp/com.sumup.merchant.reader.troubleshooting.ui.BtTroubleshootingActivity: +250ms
07-02 14:53:45.634  9544  9544 W SumUp   : (SourceFile:62)@main | Tried to start event, but last event was not finished
07-02 14:53:51.859  9544 10102 W SumUp   : (SourceFile:112)@BtSmart-Receiver | BluetoothAdapter not initialized
07-02 14:53:51.961  9544  9544 E SumUp   : (SourceFile:153)@main | onTransportError() CardReaderError{Name = TRANSPORT_ERROR mErrorCode=3}
07-02 14:53:51.966  9544  9544 W SumUp   : (SourceFile:62)@main | Tried to start event, but last event was not finished
07-02 14:53:58.260  9544 10104 W SumUp   : (SourceFile:112)@BtSmart-Receiver | BluetoothAdapter not initialized
07-02 14:53:58.367  9544  9544 E SumUp   : (SourceFile:153)@main | onTransportError() CardReaderError{Name = TRANSPORT_ERROR mErrorCode=3}
07-02 14:53:58.380  9544  9544 W SumUp   : (SourceFile:62)@main | Tried to start event, but last event was not finished
07-02 14:54:04.629  9544 10108 W SumUp   : (SourceFile:112)@BtSmart-Receiver | BluetoothAdapter not initialized
07-02 14:54:04.734  9544  9544 E SumUp   : (SourceFile:153)@main | onTransportError() CardReaderError{Name = TRANSPORT_ERROR mErrorCode=3}
07-02 14:54:04.747  9544  9544 W SumUp   : (SourceFile:62)@main | Tried to start event, but last event was not finished
07-02 14:54:10.985  9544 10110 W SumUp   : (SourceFile:112)@BtSmart-Receiver | BluetoothAdapter not initialized
07-02 14:54:11.087  9544  9544 E SumUp   : (SourceFile:153)@main | onTransportError() CardReaderError{Name = TRANSPORT_ERROR mErrorCode=3}