Skip to content

DiscoverService not showing TVs #271

@crash481

Description

@crash481

Hello, want to use your ConnectSDK for iOS and Android.
I started researching with iOS

So I created empty iOS project, added via CocoaPods
pod "ConnectSDK"
Also tried
pod "ConnectSDK/Core"

In Podfile.lock ConnectSDK was resolved to version 1.6.0

After I did in ViewController simple by documentation:

override func viewDidAppear(_ animated: Bool) {
        super.viewDidAppear(animated)
        discManager = DiscoveryManager.shared()
        discManager?.startDiscovery()
        discManager?.delegate = self
        
        discManager?.devicePicker().delegate = self
        discManager?.devicePicker().show(self)
}
        
        
extension ViewController: DevicePickerDelegate, ConnectableDeviceDelegate {
    func devicePicker(_ picker: DevicePicker!, didSelect device: ConnectableDevice!) {
        self.device = device
        device.delegate = self
        device.connect()
    }
    
    func connectableDeviceReady(_ device: ConnectableDevice!) {
    }
    
    func connectableDeviceDisconnected(_ device: ConnectableDevice!, withError error: (any Error)!) {
    }
}

extension ViewController: DiscoveryManagerDelegate {
    func discoveryManager(_ manager: DiscoveryManager!, didFind device: ConnectableDevice!) {
    }
    
    func discoveryManager(_ manager: DiscoveryManager!, didLose device: ConnectableDevice!) {
    }
    
    func discoveryManager(_ manager: DiscoveryManager!, didUpdate device: ConnectableDevice!) {
    }
    
    func discoveryManager(_ manager: DiscoveryManager!, didFailWithError error: (any Error)!) {
    }
}

But in presented devicePicker no any devices presented and no any delegate callbacks called.
Running on physical iPhone 13pro

Also in logs I see, maybe it is problem
nehelper sent invalid result code [1] for Wi-Fi information request
Tried to add "access Wi-Fi information" "Wireless Accessory Configuration" entitlements

I have modern(2021 manufactured) LG webOS and Samsung TVs connected to same wifi network.
Also another popular tv-remote apps finds this TVs well

Please help me with this situation, what I need to do?

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