Open aoancea opened 2 years ago
@rmtmckenzie any updates on this ?
I have the same issue
I discovered the problem: the qr_mobile_vision package and flutter_local_notifications use the same code to request permissions, which is why it causes an error when used together.
The solution is to modify the REQUEST_PERMISSION field to a unique code.
Package: qr_mobile_vision File: QrMobileVisionPlugin.java
private static final int REQUEST_PERMISSION = 1;
Package: flutter_local_notifications File: FlutterLocalNotificationsPlugin.java
static final int NOTIFICATION_PERMISSION_REQUEST_CODE = 1;
App crashes when denying notifications permission on Android SDK 33
I've upgrade to latest
flutter version 3.3.1
andfirebase_messaging: 13.0.3
I'm also using the new way for request notification permission from
flutter_local_notifications: 11.0.1
I'm placing below the error log
If I remove the dependecy to
qr_mobile_vision: 4.0.1
, everything works fine If I add a dependency toqr_code_scanner: 1.0.1
, everything works fine