Service lost immediately after service found smart-view-sdk 3.0 iOS

When I start searching for services, I find one, but it is lost again. This process keeps on repeating (found/lost) forever. These methods are being called endlessly (ServiceSearchDelegate)
func onServiceFound(_ service: Service)
func onServiceLost(_ service: Service)
I see this error:
NSURLConnection finished with error - code -1001
No service present in previousConnectedTVList

version: smart-view-sdk 3.0
os: iOS 14.6
Could it be that some service(s) must be added to Bonjour Services in the plist in XCode? If so, what is the name of the service(s).
I noticed that smart-view-sdk 3.0.1 is already available for download, but still not available on CocoaPods. Very strange that Samsung is not able to keep those versions in sync with each other, or is it a beta?

I can only suggest you see the smartview SDK documentation and point out the iOS enhanced featurs page HERE

If that doesn’t help, you may need to seek help from the SmartTV Apps support.

Hope this helps,

Ron
Samsung Developer Relations

1 Like

Thank you for your quick response!
I manually installed smart-view-sdk 3.0.1 from your developer portal.
In this fix version the issues are resolved. Very occasionally I still have a time-out error when getting info from the connected application (Application.getInfo), but the TV App is launched correctly.
So I ask Samsung emphatically to add that fix version smart-view-sdk 3.0.1 to CocoaPods, replacing the current 3.0
For your convenience I add the error I occasionally get from Application.getInfo, as described here above.

▿ Optional

  • some : Error Domain=NSURLErrorDomain Code=-1001 “The request timed out.” UserInfo={NSUnderlyingError=0x2808595c0 {Error Domain=kCFErrorDomainCFNetwork Code=-1001 “The request timed out.” UserInfo={NSErrorFailingURLStringKey=http://192.168.2.9:8001/api/v2/applications/xxxxxxxxxxxxx, NSErrorFailingURLKey=http://192.168.2.9:8001/api/v2/applications/xxxxxxxxxxxxx, _kCFStreamErrorCodeKey=-2102, _kCFStreamErrorDomainKey=4, NSLocalizedDescription=The request timed out.}}, NSErrorFailingURLStringKey=http://192.168.2.9:8001/api/v2/applications/xxxxxxxxxxxxx, NSErrorFailingURLKey=http://192.168.2.9:8001/api/v2/applications/xxxxxxxxxxxxx, _kCFStreamErrorDomainKey=4, _kCFStreamErrorCodeKey=-2102, NSLocalizedDescription=The request timed out.}