It turns out that I was capturing uncaught exceptions using the UncaughtExceptionHandler()
. So, sometimes when the app was actually crashing in onDestroy()
, the subsequent session was not properly launched.
Of course, in the case where the app's onDestroy()
was not called at all, the problem is still fixed when I don't use UncaughtExceptionHandler()
. Not sure why though.
-Rajath