Giter Site home page Giter Site logo

Comments (7)

bitsandfoxes avatar bitsandfoxes commented on June 20, 2024

Hey @Cheesebaron, thanks for the feature request. That does sound interesting. Do you have an idea/snippet of what that could look like?

from sentry-dotnet.

Cheesebaron avatar Cheesebaron commented on June 20, 2024

So in a couple of my Android and iOS Apps I just create a ServiceCollection like this and add dependencies to it:

var serviceCollection = new ServiceCollection();

So ideally I would just be able to add Sentry there with:

serviceCollection.AddSentry();

I had a look at what you are doing in the MAUI package for adding stuff to the service collection, I see you add:

  • Logging
  • Options
  • Hook into lifecycle events

The last one is very interesting and not sure if that comes out of the box if you just initialize Sentry directly through SentrySdk. Will lifecycle get observed? Perhaps these are mainly to hook into MAUI specific events to know when pages/windows/shell events are triggered?

EDIT:

After digging more into the code it also seems that you have extra handling for:

  • Screenshots
  • Listening to network changes

from sentry-dotnet.

bitsandfoxes avatar bitsandfoxes commented on June 20, 2024

I see. Thanks again for your input!
We've seen an uptick in interest in mobile projects outside of MAUI. We'll have to see how we can prioritize this.

from sentry-dotnet.

Cheesebaron avatar Cheesebaron commented on June 20, 2024

What I am requesting more or less what the Sentry.Xamarin project does: https://github.com/getsentry/sentry-xamarin/tree/main/Src/Sentry.Xamarin just without the Xamarin.Forms or MAUI UI framework bits.

from sentry-dotnet.

bitsandfoxes avatar bitsandfoxes commented on June 20, 2024

I think that's a fair request but realistically speaking, we won't get to adding this anytime soon.

from sentry-dotnet.

Cheesebaron avatar Cheesebaron commented on June 20, 2024

I did the porting myself here: https://github.com/Cheesebaron/sentry-dotnet-mobile (currently private), but only for iOS and Android. Let me know if you want this upstream I can invite you if you want to have a look. It has a big overlap with the MAUI package, just without all the MAUI UI framework specifics and some parts from the older Xamarin variant.

If you don't want it upstream, is it OK I package this myself and publish? Only downside is that using IConfiguration doesn't work as I don't have access to BindableSentryLoggingOptions as its visibility is internal to Sentry signed stuff.

from sentry-dotnet.

bitsandfoxes avatar bitsandfoxes commented on June 20, 2024

Let me know if you want this upstream I can invite you if you want to have a look.

That'd be awesome!

from sentry-dotnet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.