Fabric does not seem to use it, NSSetUncaughtException Handler is NULL after initialization.
Is it safe to use NSSetUncaughtExceptionHandler with Fabric?
Asked Answered
Mike from Fabric here. Can you share what you're trying to accomplish? Having two UncaughtExceptionHandlers on iOS isn't supported and is not recommended. –
Gandzha
Hi Mike, our app have "Reach Us" section that mails us complaints and our custom log file. We are trying to add crash logs to our log file. –
Cristalcristate
Gotcha, that's good to know. What I'd recommend doing is add a user identifier to the Crashlytics crash report and then use that to find their crash when they contact you. –
Gandzha
Hello again, we added custom identifier, thank you. But business side also wants to add crash to our custom log file. So i need to be sure NSSetUncaughtException will work with fabric without a problem. –
Cristalcristate
You should only use one uncaught exception handler on iOS, I personally don't recommend the approach you're discussing. –
Gandzha
@MikeBonnell We have SDK which we distribute to other users and we want to capture the crash logs of our sdk. We want to add the custom exception handler and after logging it we want to pass previous exception handler(might be crashalytics). Do you provide insights is it good idea and valid approach. –
Billposter
Please don't do this. Including Crashlytics SDK distributed to other teams is not permitted and will cause issues. –
Gandzha
© 2022 - 2024 — McMap. All rights reserved.