Skip to content

Issue: Not receiving onDeviceArrival event after connecting to the S550 on Android #27

@jimc-jpgreze

Description

@jimc-jpgreze

Your Socket Mobile Developer ID

94ad3dd4-8474-ea11-a811-000d3a3786fc

Environment

OS Version: Android 16
CaptureSDK Version: react-native-capture version 2.0.24
Device: Samsung Galaxy Tab S10 FE and Samsung S22

Description

Something has gone wrong with the Android version of the Capture SDK/react-native-capture and the S550 (BLE scanner). When I first started to work with it, I was able to discover the device, connect to it, and receive scan events. Now however, I no longer receive onDeviceArrival events or onDecodedData events. The only way I can discover the device is if I uninstall and reinstall the Socket Mobile Companion app. Then I get one, and only one, onDiscoveredDevice event, and when the app calls CaptureHelper.connectDiscoveredDevice, the S550 says "connected", but the app does not receive a onDeviceArrival event, and I do not get any onDecodedData events either. At this point if I power cycle the S550 and restart my app, the discovery process does not find the device at all. The only way to get the discovery event to work again is to uninstall and reinstall the Socket Mobile Companion app. I have tried: 1) Rebooting my tablet, 2) Factory resetting the S550, 3) Using another Android device (Samsung S22 phone) with the same results, 4) Uninstall/Reinstall the Socket Mobile Companion App (this only gets the discovery to work once), 5) Reinstall my own app. Note that if I go back to an iPad and run the same code from iOS, everything works as expected.

Steps to Reproduce

I'm not entirely sure how the CaptureSDK/react-native-capture got into this condition.

Expected Behavior

The expected result is that I can discover the S550, connect to it, and receive events. The most I can do right now is discover it once after reinstalling the Socket Mobile Companion app.

Actual Behavior

After reinstalling the Socket Mobile Companion app, I'm able to discover the S550, and after the onDiscoveryEnd event, my app no longer receives any more events.

Additional Context

I was able to run the app in Android Studio and I see in the logcat that the captureservice is connecting to the S550, and it is receiving scan events. It's just not forwarding them to my app. The last event forwarded to my app was "Notifying clients of MANUAL DEVICE DISCOVERY END event". After that, no more events were delivered.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions