I am seeing android.app.IntentReceiverLeaked when the app gets destroyed.
The IntentFilter filter (from MQTTManager, line 189) it's never unregistered, so I got rid of the error by adding context.unregisterReceiver(this); inside handleDisconnect() method (if reconnect is false, line 740).
I am seeing
android.app.IntentReceiverLeakedwhen the app gets destroyed.The IntentFilter
filter(fromMQTTManager, line 189) it's never unregistered, so I got rid of the error by addingcontext.unregisterReceiver(this);insidehandleDisconnect()method (ifreconnectisfalse, line 740).