Skip to content

Issue: Test Application Based On SingleEntrySwift Not Receiving Device Arrival Delegate Messages #35

@benpackard

Description

@benpackard

Your Socket Mobile Developer ID

95d04909-54d4-ee11-9079-000d3a5cb302

Environment

iOS 26
CaptureSDK 2.0.31
Scanner D840

Description

I have attached an example project that demonstrates the issue. I have attempted to integrate the CaptureSDK, including the following steps:

  • Added the CaptureSDK via SPM
  • Added Queried URL Schemes, Supported external accessory protocols, and necessary camera/bluetooth usage descriptions to info.plist
  • Registered the app on the developer portal and added the necessary keys via SKTAppInfo
  • Pushed a delegate to to the CaptureHelper - I used the same CaptureSdkHandler as per the SingleEntrySwift demo project to keep things as similar as possible.

I successfully see the log messages for scanned barcodes via didReceiveDecodedData, so I know the scanner is connected to the iOS device and able to communicate. However, the device arrival/removal messages are never logged. Specifically, I am not seeing the expected messages from didNotifyArrivalForDevice and didNotifyArrivalForDevice. This is despite the fact that when I run the SingleEntrySwift demo, I do receive the expected device arrival/removal messages.

Is there some additional configuration or registration step that is not documented or that I am missing?

SocketDeviceArrivalTest.zip

Steps to Reproduce

  1. Connect a scanner (I used the D840) to an iPhone (mine is running iOS 26).
  2. Run the attached Xcode project.
  3. Scan a barcode and confirm that the Decoded Data logs are generated in the console as expected.
  4. Observe that there are no logs generated in the console for the scanner's arrival on launch, or if the scanner is turned off and back on again.
  5. Run the Socket Mobile demo project SingleEntrySwift and observe that the device arrival/removal logs are generated in the console.

Expected Behavior

Prior to scanning the barcode, I would expect to see the device arrival log in the console, as I do with SingleEntrySwift.

Actual Behavior

No scanner arrival/removal logs are generated.

Additional Context

I have spent a few hours combing through my attached project and comparing it to SingleEntrySwift but have been unable to determine why mine does not register device arrival/removal.

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