paho.mqtt.java icon indicating copy to clipboard operation
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.

Open Itgetjob opened this issue 2 years ago • 6 comments

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

Itgetjob avatar Jun 27 '22 11:06 Itgetjob

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

winterer avatar Sep 21 '22 14:09 winterer

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

zk184174875 avatar Sep 05 '23 09:09 zk184174875

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.

hygreen avatar Oct 07 '23 02:10 hygreen

Someone have solved this ?

dariocavada avatar Feb 23 '24 16:02 dariocavada

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

RoustamManookian avatar Mar 31 '24 14:03 RoustamManookian

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.

rod2j avatar Mar 31 '24 19:03 rod2j