Estimote / Android-Estimote-UWB-SDK

Android SDK and demo app for Estimote UWB Beacons
https://estimote.com
MIT License
9 stars 0 forks source link

Android kotlin - Request failed with status -3 #1

Open jennaharris7 opened 1 month ago

jennaharris7 commented 1 month ago

com.estimote:uwb-sdk:1.0.0-rc5 I have the development kit, 3 beacons All beacons set up in cloud with location and tags Testing on Samsung Galaxy s24 Ultra

I'm seeing the same error on both my own app with the sdk implemented but also with the sample app out of the box.

Here are the logs when calling uwbManager.startDeviceScanning(context) :


BluetoothAdapter                D  getBleEnabledArray(): ON
BluetoothGatt                       D  connect() - device: XX:XX:XX:XX:F3:31, auto: false
BluetoothGatt                       D  registerApp()
BluetoothGatt                       D  registerApp() - UUID=c1b3bfb7-e319-4462-aa9d-76018c645def
BluetoothGatt                       D  onClientRegistered() - status=0 clientIf=15
BluetoothAdapter                D  getBleEnabledArray(): ON
BluetoothGatt                       D  onClientConnectionState() - status=0 clientIf=13 device=XX:XX:XX:XX:F3:31
BluetoothGatt                       D  onClientConnectionState() - status=0 clientIf=15 device=XX:XX:XX:XX:F3:31
BluetoothGatt                       D  onClientConnectionState() - status=0 clientIf=14 device=XX:XX:XX:XX:F3:31
BLE-CONNECTION                  D  onDeviceConnected()
BLE-CONNECTION                  D  onDeviceConnected()
BLE-CONNECTION                  D  onDeviceConnected()
BluetoothGatt                       D  discoverServices() - device: XX:XX:XX:XX:F3:31
BluetoothGatt                       D  discoverServices() - device: XX:XX:XX:XX:F3:31
BluetoothGatt                   D  discoverServices() - device: XX:XX:XX:XX:F3:31
BluetoothGatt                       D  onConnectionUpdated() - Device=XX:XX:XX:XX:F3:31 interval=6 latency=0 timeout=500 status=0
BluetoothGatt                       D  onConnectionUpdated() - Device=XX:XX:XX:XX:F3:31 interval=6 latency=0 timeout=500 status=0
BluetoothGatt                       D  onConnectionUpdated() - Device=XX:XX:XX:XX:F3:31 interval=6 latency=0 timeout=500 status=0
BluetoothGatt                       D  onSearchComplete() = Device=XX:XX:XX:XX:F3:31 Status=0
BluetoothGatt                       D  onSearchComplete() = Device=XX:XX:XX:XX:F3:31 Status=0
BluetoothGatt                       D  onSearchComplete() = Device=XX:XX:XX:XX:F3:31 Status=0
BluetoothGatt                       D  setCharacteristicNotification() - uuid: 6e400003-b5a3-f393-e0a9-e50e24dcca9e enable: true
BluetoothGatt                       D  setCharacteristicNotification() - uuid: 6e400003-b5a3-f393-e0a9-e50e24dcca9e enable: true
BluetoothGatt                       D  setCharacteristicNotification() - uuid: 6e400003-b5a3-f393-e0a9-e50e24dcca9e enable: true
BLE-CONNECTION              D  onDeviceReady()
BLE-CONNECTION              D  onDeviceReady()
BLE-CONNECTION              D  onDeviceReady()
UwbMangerImpl                   I  Creating Gms Client session scope
UwbMangerImpl                   I  Creating Gms Client session scope
UwbMangerImpl                   I  Creating Gms Client session scope
BluetoothGatt                       D  onConnectionUpdated() - Device=XX:XX:XX:XX:F3:31 interval=24 latency=0 timeout=500 status=0
BluetoothGatt                       D  onConnectionUpdated() - Device=XX:XX:XX:XX:F3:31 interval=24 latency=0 timeout=500 status=0
BluetoothGatt                       D  onConnectionUpdated() - Device=XX:XX:XX:XX:F3:31 interval=24 latency=0 timeout=500 status=0
AndroidRuntime                  E  FATAL EXCEPTION: main

no.nordicsemi.android.ble.exception.RequestFailedException: Request failed with status -3
at no.nordicsemi.android.ble.ktx.RequestSuspendKt$suspendCancellable$2$2.onRequestFailed(RequestSuspend.kt:362)
at no.nordicsemi.android.ble.Request.lambda$notifyFail$2$no-nordicsemi-android-ble-Request(Request.java:1266)
at no.nordicsemi.android.ble.Request$$ExternalSyntheticLambda0.run(Unknown Source:6)
at no.nordicsemi.android.ble.Request$1.post(Request.java:172)
at no.nordicsemi.android.ble.Request.notifyFail(Request.java:1263)
at no.nordicsemi.android.ble.BleManagerHandler.nextRequest(BleManagerHandler.java:3406)```

This looks to be `FailCallback.REASON_NULL_ATTRIBUTE` 
nealmegh commented 1 month ago

I am also having the same issue. Any Solution?

HamzaAzeem97 commented 2 weeks ago

@nealmegh @jennaharris7 does your app also get crashed on samsung galaxy s24 ultra mobile?

nealmegh commented 1 week ago

@nealmegh @jennaharris7 does your app also get crashed on samsung galaxy s24 ultra mobile? @HamzaAzeem97 Yes. I am using google pixel 8 Pro and Galaxy s23 ultra. When there are multiple beacons, the app crashes.