firebase-database-dotnet icon indicating copy to clipboard operation
firebase-database-dotnet copied to clipboard

Update FirebaseSubscription.cs

Open VladislavAntonyuk opened this issue 2 years ago • 3 comments

Fix Crash on net6.0-ios

Reproduction: https://github.com/VladislavAntonyuk/ContinueOnPC

VladislavAntonyuk avatar Aug 14 '22 21:08 VladislavAntonyuk

Can you elaborate more on the issue? Why would setting MaxAutomaticRedirections crash the iOS app?

bezysoftware avatar Aug 15 '22 20:08 bezysoftware

this property seems to be unsupported.

VladislavAntonyuk avatar Aug 15 '22 21:08 VladislavAntonyuk

Could possibly be related to the following comments in Xamarin source:

  • https://github.com/xamarin/xamarin-macios/blob/10b6dffec0d0e2e4b52adf158e0b731dcba29cf8/src/Foundation/NSUrlSessionHandler.cs#L579
  • https://github.com/xamarin/xamarin-macios/blob/10b6dffec0d0e2e4b52adf158e0b731dcba29cf8/src/Foundation/NSUrlSessionHandler.cs#L660

I believe it's possible to implement support for MaxAutomaticRedirections (it just has to be done)

We support the AllowAutoRedirect property, but we don't support changing the MaxAutomaticRedirections value, so be safe here and say we don't support redirect configuration.

cabauman avatar Aug 16 '22 00:08 cabauman