paho.mqtt.java
paho.mqtt.java copied to clipboard
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.
Please fill out the form below before submitting, thank you!
- [ ] Bug exists Release Version 1.2.5 ( Master Branch)
- [ ] Bug exists in MQTTv3 Client on Snapshot Version 1.2.6-SNAPSHOT (Develop Branch)
- [ ] Bug exists in MQTTv5 Client on Snapshot Version 1.2.6-SNAPSHOT (Develop Branch)
If this is a bug regarding the Android Service, please raise the bug here instead: https://github.com/eclipse/paho.mqtt.android/issues/new
I'm almost 100% sure that this is not a paho issue. Seems to be related to Android. Suggestion: Remove or close.
still exist,
need to adjust android 12 with the code
PendingIntent pendingIntent; if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.S) { pendingIntent = PendingIntent.getActivity(this, 123, intent, PendingIntent.FLAG_IMMUTABLE); } else { pendingIntent = PendingIntent.getActivity(this, 123, intent, PendingIntent.FLAG_ONE_SHOT); }
Dear maintainers, can you please set aside version 1.2.6 for now and focus on fixing this specific issue first? If this issue is not resolved, we won’t be able to publish the app on Google Play, as the minimum target API level now requires API 31.
Someone have solved this ?
any news? it's almost two years ????
This project is most obviously dead. No real commit in the last 2 years, and nobody to even answer to issues. I long realized Paho Java was not a serious choice for Mqtt. Apache foundation would have put this project in the Attic a long time ago.