eclipse / paho.mqtt.java

Eclipse Paho Java MQTT client library. Paho is an Eclipse IoT project.
https://eclipse.org/paho
Other
2.08k stars 879 forks source link

MqttAndroidClient Error #1002

Open kannan-krishnan opened 1 year ago

kannan-krishnan commented 1 year ago

getting error while Connecting to MqttAndroidClient mqttClient = MqttAndroidClient(applicationContext, serverUri, clientId, persistence)

Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent. Strongly consider using FLAG_IMMUTABLE, only use FLAG_MUTABLE if some functionality depends on the PendingIntent being mutable, e.g. if it needs to be used with inline replies or bubbles.