Skip to content

Sentry.Xamarin does not work on .Net 6.0 iOS #97

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Dolfik1 opened this issue Jan 11, 2022 · 2 comments
Closed

Sentry.Xamarin does not work on .Net 6.0 iOS #97

Dolfik1 opened this issue Jan 11, 2022 · 2 comments

Comments

@Dolfik1
Copy link

Dolfik1 commented Jan 11, 2022

Environment

net6.0-ios13.0

Steps to Reproduce

Invoke SentryXamarin.Init in AppDelegate constructor.

Expected Result

The app started without crash and Sentry is initialized successfully.

Actual Result

The app crashed after start:

Unhandled managed exception: Operation is not supported on this platform. 
(System.PlatformNotSupportedException)
   at System.Net.Http.NSUrlSessionHandler.get_SupportsAutomaticDecompression()
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
--- End of stack trace from previous location ---
   at System.Net.Http.HttpClientHandler.InvokeNativeHandlerMethod(String name, Object[] parameters)
   at System.Net.Http.HttpClientHandler.GetSupportsAutomaticDecompression()
   at System.Net.Http.HttpClientHandler.get_SupportsAutomaticDecompression()
   at Sentry.Internal.Http.DefaultSentryHttpClientFactory.Create(SentryOptions options)
   at Sentry.Internal.SdkComposer.CreateTransport()
   at Sentry.Internal.SdkComposer.CreateBackgroundWorker()
   at Sentry.SentryClient..ctor(SentryOptions options, IBackgroundWorker worker)
   at Sentry.SentryClient..ctor(SentryOptions options)
   at Sentry.Internal.Hub..ctor(SentryOpti<…>
@lucas-zimerman
Copy link
Collaborator

We are not going to support .NET 6 on this Package.
Instead, we will bring support for it on the main package: getsentry/sentry-dotnet#1282

@bruno-garcia
Copy link
Member

Closing because we don't expect to support .NET 6 with this package. The goal is to add support in the core .NET SDK

Repository owner moved this from Needs Discussion to Done in [DEPRECATED] Mobile SDKs Mar 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

No branches or pull requests

3 participants