Open darlandc1998 opened 3 years ago
Im also having the same error. Any updates on this?
,,发自我的手机-------- 原始邮件 --------发件人: Alexminator99 @.>日期: 2024年4月4日周四 10:37收件人: "eclipse/paho.mqtt.android" @.>抄送: CrazyMo @.>, Comment @.>主 题: Re: [eclipse/paho.mqtt.android] Error: Has leaked IntentReceiver org.eclipse.paho.android.service.AlarmPingSender (#431) Im also having the same error. Any updates on this?
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>
Please fill out the form below before submitting, thank you!
Android API Version Bug Seen on:
Android Version Bug Seen on: compile('org.eclipse.paho:org.eclipse.paho.android.service:1.0.2');
Please also check that if you have found the bug in the Release version (1.1.1) that you check that it also exists in the Snapshot (1.1.2-SNAPSHOT) before raising a bug.
Description of Bug:
Hello, I created a notification service that uses an MqttAndroidClient, when starting MainActivity.class I start the notification service (startService) that is running in the background and in the foreground, when calling onDestroy of that same activity (MainActivity.class) to stop notification service (stopService), and within the notification service onDestroy I stop running MqttAndroidClient, however when I run the methods to stop running, the following exception is thrown:
Service org.eclipse.paho.android.service.MqttService has leaked IntentReceiver org.eclipse.paho.android.service.AlarmPingSender$AlarmReceiver@b2f2c97 that was originally registered here. Are you missing a call to unregisterReceiver ()?
I perform the following methods to stop MqttAndroidClient from running:
Any idea what could be causing this?
Console Log output (if available):