microsoft / appcenter-sdk-android

Development repository for the App Center SDK for Android
Other
279 stars 134 forks source link

Add support for Android 11's ActivityManager.getHistoricalProcessExistReasons API #1683

Closed peitschie closed 1 year ago

peitschie commented 1 year ago

Is your feature request related to a problem? Please describe. AppCenter's SDK crash reports miss various problematic app termination reasons, meaning that even with crash reporting enabled a lot of app restarts never log any crashes or issues (e.g., due to excessive power usage, dependency process died, app frozen, etc.).

Describe the solution you'd like Android 11 has added an ActivityManager.getHistoricalProcessExistReasons() API that can be used to retrieve the termination status of the app on next restart: https://developer.android.com/about/versions/11/features#app-process-exit-reasons

Android 12 has even added the ability to retrieve an associated tombstone file in the event of a native crash: https://developer.android.com/about/versions/12/features#provide_apps_direct_access_to_tombstone_traces

It would be fantastic to have this SDK grow support for these features on supported phones.

Describe alternatives you've considered No other solutions considered... this seems to be the only way to capture these exit conditions.

Additional context N/A

peitschie commented 1 year ago

Here's the equivalent feature present in Crashlytic's crash reporting: https://github.com/firebase/firebase-android-sdk/pull/2602

aleksandr-dorofeev commented 1 year ago

Hello @peitschie Thanks for the feature request! Unfortunately we don't have an ETA, but contribution is always welcome :)

peitschie commented 1 year ago

No worries, thanks @aleksandr-dorofeev

Out of interest, is there much of a roadmap on this SDK still, or is it pretty much in maintenance mode now?