Instabug instance is never destroyed [Android]

121 Views Asked by At

In my onCreate method, I've initialized Instabug following the steps on the official docs. If I invoke Instabug, it is never destroyed, even after my app is. The dialog appears and whether or not I submit a bug, I can see a separate Instabug activity exists on my phone's activity stack. If I close out my application, the Instabug instance still exists. How can I destroy the Instabug instance?

1

There are 1 best solutions below

0
On

First of all, I think you need to read more about Life Cycle.

What happened, that you started the Instabug functionalities at the beginning of your app launch. When you click the home-page button, it put your app to the recent apps (Running in the background), thus, the Instabug functionality still exist and running [Until you remove the app from recent app of-course].

So, You need to disable() your app Instabug functionality once needed, and enable() it again if needed.