Yortw / RSSDP

Really Simple Service Discovery Protocol - a 100% .Net implementation of the SSDP protocol for publishing custom/basic devices, and discovering all device types on a network.
http://yortw.github.io/RSSDP/
MIT License
282 stars 66 forks source link

Not working with Xamarin.Android #76

Closed kakone closed 6 years ago

kakone commented 6 years ago

Hello,

I noticed with latest versions of Xamarin.Android that the devices search doesn't work anymore. Did you have the problem too ? The Socket.SendTo method seems to hang.

Yortw commented 6 years ago

Hi,

I'm afraid I only regularly use the UWP and desktop framework versions. The Android version did work last time I tried it, but that was a while ago and I haven't tried since. As far as I know nothing has changed in the lib that should have broken it - you are the first to report a problem with Android/Xamarin. Of course that doesn't mean it works.

I will try to look at it when I can, but my living and work situations are awkward right now and I actually don't know when that will be sorry. Would appreciate help if you're able to look at it, otherwise I will look when I can.

Do you have a specific version of Android.Xamarin you're testing on?

Do you know if it works if you go back to an older Android.Xamarin?

Yortw commented 6 years ago

Hi,

Not sure what the problem you're experiencing is. Are you still having it? I just created a brand new Xamarin Forms project, upgraded all the packages to the latest stable release and deployed some test code to a Samsung S8 - it finds 48 devices on my test network no problem.

Have you tried creating the locator with a specific IP address (the one for the wifi adapter), in case it's picking the cellular/vpn connection or something instead?

Yortw commented 6 years ago

BTW, I used the latest RSSDP package from Nuget for this test.

kakone commented 6 years ago

In fact, it works great. I did all my tests in an Android unit test project. There is a big problem in this kind of project because async methods don't work correctly. If I do the same tests in a classic Android app project, all works great.

Yortw commented 6 years ago

Sad to hear about that problem, but glad you found an answer/work around. Thanks for letting me know and closing the issue.