Closed mvegaca closed 1 year ago
I have created an isolated PoC App to reproduce the exception, and the error is the same. If it is helpful, I Will attach it in a zip file in this GitHub issue.
Hello, @mvegaca Thanks for getting in touch with us! It's look like a duplicate issue 1702 Also, if you have a sample app with reproduce, could you attach it?
Hi! This is the app, I hope it can help. AppCenterSDKCrashReproApp.zip
You should add a MacOS AppID here.
I must said that I finally fix it targeting the app to net7.0-macos in the csproj file but this will be a problema when I will like to run this Project in Windows.
<TargetFrameworks>net7.0-macos</TargetFrameworks>
I think that the SDK should with default configuration for Avalonia XPlat Project template.
The error is reproduced, and apparently it is the same as in the above issue, so I am closing this issue as a duplicate, and you can track the solution to your problem in the original issue.
Description
The app throws an exception when runs AppCenter.Start method.
I'm working on a Avalonia CrossPlatform Project with iOS, Android, and Desktop projects. When I initialize my AnalyticsService I run:
GetAppId returns a APP CENTER AppId for different platforms depending on the app running platform. It Works for Android and iOS but when I run this on MacOS using the MacOS App Id the code throwns an exception.
Exception message
Message "The type initializer for 'Microsoft.AppCenter.Utils.ApplicationLifecycleHelperDesktop' threw an exception." string
Exception stacktrace
Development enviroment
I hope you can help me with this. Please if it's a known issue and there is some workaround let me know.
Thank you very much in advance.