Open AnkurJagani opened 4 years ago
Has the problem been solved?
You can do like this: Inside proguard.cfg file,add this -keep class org.eclipse.paho.client.mqttv3.internal. { ; } -keep class org.eclipse.paho.client.mqttv3.spi. { ; }
Good luck!
Connect to EMQ, please replace mqtt
to tcp
, like this:MqttAndroidClient mqttAndroidClient = new MqttAndroidClient(this, "tcp://test.mosquitto.org:1883", MqttClient.generateClientId());
Only 5 protocol supported: tcp/ssl/local/ws/wss
Connect to EMQ, please replace
mqtt
totcp
, like this:MqttAndroidClient mqttAndroidClient = new MqttAndroidClient(this, "tcp://test.mosquitto.org:1883", MqttClient.generateClientId());
Only 5 protocol supported: tcp/ssl/local/ws/wss
and replase 'mqtts' to 'ssl' ??
Please fill out the form below before submitting, thank
Android API Version Bug Seen on: Android API Version 28 (Android 9.0) (Tested on emulator device. i.e. Nexus 5 With Provided Google Play Feature)
Android Version Bug Seen on: Android Pie
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:
Steps to re-create
init MQTT Client.
MqttAndroidClient mqttAndroidClient = new MqttAndroidClient(this, "mqtt://test.mosquitto.org:1883", MqttClient.generateClientId());
Connect to the initiated client.
That's it. I am facing error in below callback method.
printStackTrace already shown as below.
Console Log output (if available):
Setup or Configuration of Library
build.gradle
file.implementation 'org.eclipse.paho:org.eclipse.paho.client.mqttv3:1.2.5' implementation 'org.eclipse.paho:org.eclipse.paho.android.service:1.1.1'