I want to use Crashlytics. I initialize Crashlytics in the onCreate
function from my main
activity and everything works well.
The problem starts if the app is not active for a while and I want to jump into the app from a status bar notification. I think it gets recycled from the Android garbage collection. So I have to reinitialize Crashlytics. It's possible that I get from the status bar a notification to nearly every activity in my app (I also trigger async task from the status bar).
Do I have to initialize Crashlytics in every activity/async task to make sure that it's working well after the app gets closed and recycled or is there another method?