简体   繁体   中英

Instabug instance is never destroyed [Android]

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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM