bitstadium / HockeySDK-iOS

HockeyApp was retired and the SDKs are deprecated. Please use App Center instead.
https://github.com/microsoft/appcenter-sdk-apple
Other
597 stars 268 forks source link

No crash dialog in main app after crashes via KB extension #549

Closed Cloov closed 5 years ago

Cloov commented 5 years ago

What is the process for crashes being submitted when they occur inside an app extension? We tried force-crashing our keyboard extension and then starting up the main app, but haven't received any dialog to ask whether we want to send a report. Is this what should happen? Perhaps we're doing something wrong.

Our setup code in the keyboard is as follows, and fires in viewDidLoad:

BITHockeyManager.shared().configure(withIdentifier: "our ID") BITHockeyManager.shared().start()

print("Environment: (BITHockeyManager.shared().appEnvironment)") // Environment is BITEnvironment

// Then, we force a crash

dtrabo commented 5 years ago

Hi @Cloov, thanks for reporting this! Unfortunately, Hockey SDK doesn't display an alert window when a crash reports in extension.

Cloov commented 5 years ago

Thanks! So let's say our extension is crashing, but our main app never does. Can we - and should we - programatically enable automatic crash uploads, either in the app or (keyboard) extension, or both, to ensure that we get these extension crash reports?

dtrabo commented 5 years ago

Thanks for your patience. The HockeySDK enables crash reporting per default. You don't have to enable this module. Also, it works the same way with extensions. You can find additional information on the next page: https://support.hockeyapp.net/kb/client-integration-ios-mac-os-x-tvos/hockeyapp-for-ios#3-4-ios-extensions

Let me know if you have any additional questions, please.

MatkovIvan commented 5 years ago

Hi, we haven't heard from you in a while so I'm closing this issue. Please reopen/comment if you have more questions or run into this again.