Sentry.Xamarin.Forms
1.5.1
dotnet add package Sentry.Xamarin.Forms --version 1.5.1
NuGet\Install-Package Sentry.Xamarin.Forms -Version 1.5.1
<PackageReference Include="Sentry.Xamarin.Forms" Version="1.5.1" />
paket add Sentry.Xamarin.Forms --version 1.5.1
#r "nuget: Sentry.Xamarin.Forms, 1.5.1"
// Install Sentry.Xamarin.Forms as a Cake Addin
#addin nuget:?package=Sentry.Xamarin.Forms&version=1.5.1
// Install Sentry.Xamarin.Forms as a Cake Tool
#tool nuget:?package=Sentry.Xamarin.Forms&version=1.5.1
Bad software is everywhere, and we're tired of it. Sentry is on a mission to help developers write better software faster, so we can get back to enjoying technology. If you want to join us, check out our open positions.
Sentry SDK for Xamarin
Integrations | Downloads | NuGet Stable | NuGet Preview |
---|---|---|---|
Sentry.Xamarin.Forms | |||
Sentry.Xamarin |
Sentry.Xamarin is the tool to go for Xamarin that enriches your errors with valuable data, like breadcrumbs, tags, issue grouping and more!.
Includes for all Platforms supported by Xamarin Essentials:
- Automatic Navigation breacrumbs. (Xamarin.Forms)
- Xaml warnings as breadcrumbs. (Xamarin.Forms)
- Simulator flag.
- Device manufacturer.
- Device model.
- Operational system name and version.
- Screen information (Pixel density and resolution).
- Connectivity status.
Additionaly, Android and IOS will include additional information:
- Free Internal memory (Android/iOS).
- Total RAM (Android/iOS).
- CPU model (Android).
BEFORE
AFTER
Setup
All you need to do is to initialize Xamarin integration by calling SentryXamarin.Init, and, it's recommended to start Sentry Xamarin SDK as early as possible, for an example, the start of OnCreate on MainActivity for Android, and, the top of FinishedLaunching on AppDelegate for iOS)
SentryXamarin.Init(options =>
{
options.Dsn = "__YOUR__DSN__";
options.AddXamarinFormsIntegration();
});
If your app uses Xamarin.Forms you can also use the package Sentry.Xamarin.Forms and initialize the SDK with additional line options.AddXamarinFormsIntegration()
.
Android
On your MainActivity
public class MainActivity : global::Xamarin.Forms.Platform.Android.FormsAppCompatActivity
{
protected override void OnCreate(Bundle savedInstanceState)
{
SentryXamarin.Init(options =>
{
options.Dsn = "__YOUR__DSN__";
options.AddXamarinFormsIntegration();
});
...
iOS
On AppDelegate.cs
public partial class AppDelegate : global::Xamarin.Forms.Platform.iOS.FormsApplicationDelegate
{
public override bool FinishedLaunching(UIApplication app, NSDictionary options)
{
SentryXamarin.Init(options =>
{
options.Dsn = "__YOUR__DSN__";
options.AddXamarinFormsIntegration();
});
...
UWP
On App.Xaml.cs
sealed partial class App : Application
{
protected override void OnLaunched(LaunchActivatedEventArgs e)
{
SentryXamarin.Init(options =>
{
options.Dsn = "__YOUR__DSN__";
options.AddXamarinFormsIntegration();
});
...
Compatibility
The package requires the following versions or newer:
- Tizen 4.0 (for Tizen)
- Xamarin.Android 9.0 (for Android)
- Xamarin.iOS 10.14 (for iOS)
- Universal Windows Platform 10.0.16299 (for UWP)
- Xamarin.Forms 4.6.0.726 (for Xamarin.Forms integration)
- Xamarin.Essentials 1.4.0
- Sentry 3.0.0
Resources
Product | Versions |
---|---|
.NET | net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.0-windows |
.NET Core | netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1 |
.NET Standard | netstandard2.0 netstandard2.1 |
.NET Framework | net461 net462 net463 net47 net471 net472 net48 net481 |
MonoAndroid | monoandroid |
MonoMac | monomac |
MonoTouch | monotouch |
Tizen | tizen40 tizen60 |
Xamarin.iOS | xamarinios |
Xamarin.Mac | xamarinmac |
Xamarin.TVOS | xamarintvos |
Xamarin.WatchOS | xamarinwatchos |
-
.NETStandard 2.0
- Sentry.Xamarin (>= 1.5.1)
- Xamarin.Forms (>= 4.6.0.726)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.5.1 | 1,444 | 2/6/2023 |
1.5.0 | 333 | 2/1/2023 |
1.4.6 | 875 | 1/24/2023 |
1.4.5 | 2,536 | 12/6/2022 |
1.4.4 | 2,043 | 11/4/2022 |
1.4.3 | 1,611 | 10/10/2022 |
1.4.2 | 7,744 | 8/5/2022 |
1.4.1 | 11,750 | 5/9/2022 |
1.4.0 | 2,319 | 4/12/2022 |
1.3.2 | 12,093 | 1/18/2022 |
1.3.1 | 8,120 | 9/11/2021 |
1.3.0 | 355 | 9/9/2021 |
1.2.0 | 3,880 | 7/21/2021 |
1.1.0 | 3,912 | 6/18/2021 |
1.0.3 | 7,614 | 3/4/2021 |
1.0.2 | 561 | 2/14/2021 |
1.0.1 | 388 | 2/2/2021 |
1.0.0 | 285 | 1/29/2021 |
1.0.0-alpha.4 | 388 | 1/10/2021 |
1.0.0-alpha.3 | 180 | 12/30/2020 |
1.0.0-alpha.2 | 172 | 12/24/2020 |
1.0.0-alpha.1 | 259 | 12/21/2020 |
Changes since version 1.5.0
Fixes:
- Update Sentry.NET SDK to 3.27.1 ([#136](https://github.com/getsentry/sentry-xamarin/pull/136))
- [changelog](https://github.com/getsentry/sentry-dotnet/blob/3.27.1/CHANGELOG.md)
- [diff](https://github.com/getsentry/sentry-dotnet/compare/3.27.0...3.27.1)
-->
See full changelog at https://github.com/getsentry/sentry-xamarin/blob/main/CHANGELOG.md