GithubHelp home page GithubHelp logo

Comments (3)

ElektrojungeAtWork avatar ElektrojungeAtWork commented on August 22, 2024

Hi @GusevAndrey,

this behavior is actually by design - the SDK wasn't implemented to have crash reporting enabled/disabled before calling [[BITHockeyManager sharedHockeyManager] startManager];.

That said, you could do:

 [[BITHockeyManager sharedHockeyManager] startManager];
  [[BITHockeyManager sharedHockeyManager] setDisableCrashManager:YES];

And then enable it whenever you want.
In theory, it's possible to have a crash happen between these two lines of code (before it's disabled), I've never seen it happen in 7 years at HockeyApp and haven't heard that this is happening.

Let me know if this helps.
Best,
Benjamin

from hockeysdk-ios.

GusevAndrey avatar GusevAndrey commented on August 22, 2024

Hi @TroubleMakerBen,

It is strange to see it by design due to there is no any mention of that neither in comments or API which provides way to set any status at any time. Moreover there is no any assert in runtime too. So setting logs disabled before manager start looks totally legal.

And that led us to a bug which we've managed to discover only after investigate Hockey's sources.

So by the end of the day we did exactly what you say: disable crash manager just after start and hope nothing happens).

But still, it would be cool if the behaviour was supported or at minimum impossible by API.

from hockeysdk-ios.

ElektrojungeAtWork avatar ElektrojungeAtWork commented on August 22, 2024

Hi @GusevAndrey,

I appreciate the feedback and also agree.
It's one of the learnings that we have incorporated in the way we design API's for the successor to HockeyApp, App Center (you should check it out, you can log in with your HockeyApp credentials!).

from hockeysdk-ios.

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.