-
Notifications
You must be signed in to change notification settings - Fork 896
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
Comments
duplicate of 480 |
Hi @tabilzad we only want to use authorised library only because it is a critical to business and also security concern. |
@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. |
@tabilzad Can you please suggest any alternative like paid operations. |
|
add implementation 'com.google.android.gms:play-services-nearby:18.0.0' |
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
The text was updated successfully, but these errors were encountered: