eclipse / paho.mqtt.java

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

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. #940

Open Itgetjob opened 2 years ago

Itgetjob commented 2 years ago

Please fill out the form below before submitting, thank you!

If this is a bug regarding the Android Service, please raise the bug here instead: https://github.com/eclipse/paho.mqtt.android/issues/new

winterer commented 1 year ago

I'm almost 100% sure that this is not a paho issue. Seems to be related to Android. Suggestion: Remove or close.

zk184174875 commented 1 year ago

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); }

hygreen commented 11 months ago

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.

dariocavada commented 6 months ago

Someone have solved this ?

RoustamManookian commented 5 months ago

any news? it's almost two years ????

rod2j commented 5 months ago

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.