kakone / GoogleCast

Implementation of the Google Cast protocol (.NET Standard 2.0 library)
GNU General Public License v3.0
141 stars 22 forks source link

didn't connected to Chrome in ios release mode but working fine in debug mode #35

Open shahtajjawaid opened 2 years ago

shahtajjawaid commented 2 years ago

Hi, I have created an application using Xamarin and used a chrome cast in it. Application working fine in Debug mode bug but when await ConnectAsync(selectedcastdevices) call it didn't work in release mode and did not connect to the casting device. I am using the google cast plugin for the chrome cast technique. mac os Catalina 10, iPad 15 version, and vs 2019.

I have done too much research about this issue before posting it here and what I have concluded is 'issue can be of Permission' (debug mode doesn't ask for permission) but in release, it asks and somewhere in this permission section is vulnerable cause it works fine in debug mode as mentioned above

it executed Semaphore.Release() and never come back on release mode and show nothing

In info.plist, NSAppTransportSecurity => NSAllowsArbitraryLoads set to true is already added.

AlyosA commented 2 years ago

Hi, we're encountering the same issue with our application. (Xamarin Forms : 5.0.0.2083 / GoogleCast : 1.7.0)

We're getting TimeOut in iOS Release but not in Debug mode. We gave like all permission to the app.

Did you find any workaround ?

shahtajjawaid commented 2 years ago

Hi alyosA No we are still stucked in the same. we also provided all permissions but no luck.

cncb-gh commented 2 years ago

I just came here to report the same thing. It does not make any sense.