umair13adil / flutter_logs

An extensive logging framework developed for flutter apps.
https://itnext.io/sending-logs-from-flutter-apps-in-real-time-using-elk-stack-mqtt-c24fa0cb9802
Apache License 2.0
39 stars 28 forks source link

Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent. #58

Open Akiyamka opened 9 months ago

Akiyamka commented 9 months ago
D/AlarmPingSender( 4975): Register alarmreceiver to MqttServiceMqttService.pingSender.paho134687483713410
E/AndroidRuntime( 4975): FATAL EXCEPTION: MQTT Rec: paho134687483713410
E/AndroidRuntime( 4975): Process: kontur.io.live_sensors, PID: 4975
E/AndroidRuntime( 4975): java.lang.IllegalArgumentException: kontur.io.live_sensors: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent.
E/AndroidRuntime( 4975): 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.
E/AndroidRuntime( 4975):    at android.app.PendingIntent.checkFlags(PendingIntent.java:378)
E/AndroidRuntime( 4975):    at android.app.PendingIntent.getBroadcastAsUser(PendingIntent.java:648)
E/AndroidRuntime( 4975):    at android.app.PendingIntent.getBroadcast(PendingIntent.java:635)
E/AndroidRuntime( 4975):    at org.eclipse.paho.android.service.AlarmPingSender.start(AlarmPingSender.java:76)
E/AndroidRuntime( 4975):    at org.eclipse.paho.client.mqttv3.internal.ClientState.connected(ClientState.java:1209)
E/AndroidRuntime( 4975):    at org.eclipse.paho.client.mqttv3.internal.ClientState.notifyReceivedAck(ClientState.java:1045)
E/AndroidRuntime( 4975):    at org.eclipse.paho.client.mqttv3.internal.CommsReceiver.run(CommsReceiver.java:151)
E/AndroidRuntime( 4975):    at java.lang.Thread.run(Thread.java:1012)