Closed sgreifeneder closed 1 month ago
I have the same problem. I am using the latest version of the package (1.1.1).
I fixed the issue. It was on my side.
In my code there wastry...catch
block around:
UIApplication.Main(args, null, typeof(AppDelegate));
and it was blocking NewRelic mechanism from saving the exception. Now crashes are reported correctly.
It seems that not all crashes are reported, but I can't reproduce that yet. However, the biggest issue is something else: just learnt from NewRelic support, that MAUI apps don't support symbolication on iOS ... so that's useless anyway because you can't read crash reports.
@sgreifeneder @akrol95 have you trie to upload dsysm using this? https://docs.newrelic.com/docs/mobile-monitoring/new-relic-mobile-ios/configuration/upload-dsyms-bitcode-apps/#manual-dsym
@sgreifeneder @akrol95 To capture unhandled exceptions in iOS, you can introduce the following code when initializing the agent. We will start capturing these exceptions from the next release:
AppDomain.CurrentDomain.UnhandledException += (s, e) =>
{
CrossNewRelic.Current.RecordException((Exception)e.ExceptionObject);
};
@ndesai-newrelic I'm already manually uploading the dSYM file. The issue is something else.
Please note that although, you are able to upload the dSYMs, they won't symbolicate the stack traces for a platform other than iOS because our hybrid agents (including the MAUI plugin) don't currently support the symbolication of crashes.
@sgreifeneder They are discussing .NET symbolication. We provide support for iOS crash symbolication using dsyms. Have you attempted to use the unhandled exception code that I recommended?
Where should I add this?
After CrossNewRelic.Current.Start(...)
and only for iOS?
@sgreifeneder you can add after you start agent. it is only for iOS.
ok will try
@sgreifeneder it is released now.
@ndesai-newrelic Are you referring to v1.1.4 of the New Relic .NET MAUI mobile plugin, released on Oct 11th? I also see a lot of data NOT being reported for iOS ... e.g. monthly active users. Android seems fine, though.
@sgreifeneder yes, can you share what data is missing from ios?
I am using v1.1.1 in production, and I released an Android and iOS app (built with .NET MAUI) approx. 2 weeks ago. While Android seems to be reporting fine, on iOS I'm missing: monthly active users (it's just 0), devices, OS versions, ... basically everything that's under USERS in the NewRelic menu for my app. I hope that's fixed with v1.1.4? Because I need to report these numbers on a monthly basis to my customers ...
@sgreifeneder can you test it with 1.1.4? it should fixed all the issues.
@ndesai-newrelic I had a quick test with 1.1.4 locally on my iPhone and I could see some data coming in. Will update here again once I release my app.
@ndesai-newrelic while it's working locally, my app crashes immediately when opened from TestFlight (everytime). Maybe an issue with release builds, I'm investigating it currently ... any known issues there?
see also https://github.com/newrelic/newrelic-maui-plugin/issues/50#issuecomment-2441831981
Description
I've set up 2 entities in NewRelic, one for Android and one for iOS. It should monitor some basic app usages, but also (un)handled crashes.
I've followed the readme to setup my MAUI app:
In
MauiProgram.cs
:Now, when I try to manual trigger crashes/exceptions, they will show up in NewRelic dashboard for Android but not for iOS.
Steps to Reproduce
throw new Exception(...);
orCrossNewRelic.Current.CrashNow();
to simulate a crashExpected Behavior
Crash should show up in NewRelic dashboard.