Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MQTT Exception not supported on Android 12 #482

Open
AshutoshGrab1990 opened this issue Aug 5, 2022 · 6 comments
Open

MQTT Exception not supported on Android 12 #482

AshutoshGrab1990 opened this issue Aug 5, 2022 · 6 comments

Comments

@AshutoshGrab1990
Copy link

FATAL EXCEPTION: MQTT Rec: com.grab.grabrider:G102795:a1befa45613a437bd71cc08cfc57a4d2c26
Process: com.grab.grabrider, PID: 13370
java.lang.IllegalArgumentException: com.grab.grabrider: 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.
at android.app.PendingIntent.checkFlags(PendingIntent.java:375)
at android.app.PendingIntent.getBroadcastAsUser(PendingIntent.java:645)
at android.app.PendingIntent.getBroadcast(PendingIntent.java:632)
at org.eclipse.paho.android.service.AlarmPingSender.start(AlarmPingSender.java:76)
at org.eclipse.paho.client.mqttv3.internal.ClientState.connected(ClientState.java:1214)
at org.eclipse.paho.client.mqttv3.internal.ClientState.notifyReceivedAck(ClientState.java:1050)
at org.eclipse.paho.client.mqttv3.internal.CommsReceiver.run(CommsReceiver.java:151)
at java.lang.Thread.run(Thread.java:920)

Working On Android 12 and MQTT is not supported on Android 12

@tabilzad
Copy link

tabilzad commented Aug 5, 2022

duplicate of 480

@AshutoshGrab1990
Copy link
Author

Hi @tabilzad we only want to use authorised library only because it is a critical to business and also security concern.
Also I would like to tell you that I tried to use this https://github.com/hannesa2/paho.mqtt.android but it gives error at Mqtt service and alarl manager. Please suggest alternative @jponge @ketan @atoulme

@tabilzad
Copy link

tabilzad commented Aug 5, 2022

@AshutoshGrab1990 this repo hasnt been updated in several years so its unlikely this official lib will support Android 12 anytime soon. In regards to issues related @hannesa2's repo - please post there.

@AshutoshGrab1990
Copy link
Author

@tabilzad Can you please suggest any alternative like paid operations.

@tabilzad
Copy link

@tabilzad Can you please suggest any alternative like paid operations.

https://github.com/aws/aws-iot-device-sdk-java-v2

@0x3fffff
Copy link

add implementation 'com.google.android.gms:play-services-nearby:18.0.0'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants