Issues after upgrading package from "Raygun4Xamarin.Forms" to "Raygun4Maui"

kavitap810

Posted on
Mar 14 2024

Hello Team,

I have upgraded Raygun4Xamarin.Forms package to the latest version of Raygun4Maui while migrating from Xamarin project to MAUI, but some of the things like

  1. RaygunClient.Current.SendTimingEvent()
  2. RaygunClient.Current.User ( of type RaygunUserInfo)
  3. RaygunClient.Current.BeforeSendingCrashReportEvent
  4. RaygunClient.Current.EnableCrashReporting();
  5. RaygunClient.Current.EnableRealUserMonitoring();

    are not supported after upgrade. Please let me know any alternative for these.


Reilly Oldham

Raygun

Posted on
Mar 14 2024

Hi There!

We are about to release Raygun4Maui v2.0.0 in the coming weeks which will add Real User Monitoring support. This means that all the features you mentioned there will be there to use soon.

Our current version of the Raygun4Maui provider does support the crash reporting functionality, though there are some API changes from the Raygun4Xamarin. You can see some of these changes in our documentation. However, once we release the updated provider there will be some further changes.

If you'd like to try out the pre-release for the v2.0.0 provider it's on NuGet under RC-7. The documentation for this can be found in the release's readme.

Kind Regards,

Reilly.


kavitap810

Posted on
Mar 15 2024

Hi Reilly,

Thank for your quick response. Any estimated timeline, by when the Raygun4Maui v2.0.0 is expected to be released? So, that accordingly we can plan the changes in our project.


Reilly Oldham

Raygun

Posted on
Mar 17 2024

Hi There!

RC-7 is intended to be production-ready, so the API we provide should not change when we do a full release. Transitioning to the full release should only require changing the NuGet package reference. Everything is functional so you can start the transition whenever you are ready.

Providing testing goes well we are looking at shipping v2.0.0 in the next two weeks. However, this could get pushed out depending on the feedback we get.

Kind Regards,

Reilly.


kavitap810

Posted on
Mar 18 2024

Hey Reilly, Thanks for update on release timeline. There are few classes (present in Raygun4Xamarin ) not present in Raygun4Maui 2.0 documentation as well. Can you please help with these :

  1. In Raygun4Xamarin, there was a method RaygunClient.Current.SendTimingEvent() - what should be used for this in Raygun4Maui?
  2. In Raygun4Xamarin, there was an event available RaygunClient.Current.BeforeSendingCrashReportEvent to edit messages, can we use RaygunClient.Current.SendingMessage for this same purpose in Raygun4Maui
  3. In Raygun4Xamarin there was RaygunClient.Current.User ( of type RaygunUserInfo) . In Raygun4Maui, should we use RaygunIdentifierMessage now for setting this user.

Reilly Oldham

Raygun

Posted on
Mar 18 2024

Hi There!

Those are some of the API changes I mentioned previously,

  1. We now use the RaygunRum.SendTimingEvent(); This is so we can separate the RUM functionality from the client
  2. RaygunMauiClient.Current.SendingMessage has the same purpose in Raygun4Maui, we now use Raygun4Net.NetCore as a base so we inherit the main functionality from there. Here's our docs for that if you'd like to know more
  3. The RaygunIdentifierMessage is the object representation of the user in Raygun4Maui. To note, we've obsoleted RaygunMauiClient.Current.User in place of MauiUserProvider which inherits from IRaygunUserProvider. You can read about this in the README on the RC-7 page

Our v2.0.0 documentation will be live on the Raygun docs as soon as we release the new version.

Kind Regards,

Reilly.


Reilly Oldham

Raygun

Posted on
Apr 23 2024

Hi There!

We have now released the Raygun4Maui v2.0.0 provider with the updated documentation. If you have any issues or need a hand let me know.

Documentation links:

https://raygun.com/documentation/language-guides/dotnet/crash-reporting/maui/

https://raygun.com/documentation/language-guides/dotnet/real-user-monitoring/maui/

Provider link:

https://www.nuget.org/packages/Raygun4Maui/2.0.0

Kind Regards,

Reilly.


Reply