-
-
Notifications
You must be signed in to change notification settings - Fork 928
Reply already submitted in Android 13 while user request permissions #1147
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
Conversation
|
Hi @jinchengwu-ola, thank you for contributing to the It is not clear to me which bug your changes are supposed to fix. Could you link us to the issue number? |
Hi @JeroenWeener , I encounter an issue requesting post_notification permission which will cause 'Reply already submitted' cashing in Android 13, Galaxy S21, xiaomi devices. It crashes at com.baseflow.permissionhandler.n.onRequestPermissionsResult (PermissionManager.java:173). I guess it is an system pitfall that special permission requesting's result will not only be recall in onActivityResult, but also in onRequestPermissionsResult at the same time. But still need to verify to check Android 13 system source code. Anyway It looks not exactly like merged #1139 mentioned. Crashes at which merged #1139 mentioned happen in onActivityResult(PermissionManager.java:64). After all, I found @Shilk1266 have the similar issue with me, bellow is the link. Hope I make it clear, thanks~ |
|
Hi @jinchengwu-ola thanks for your reply! This is an interesting issue. We'd be interested in including your PR in the code base. Before we do that though, we would like to unravel what is causing this issue in the first place. Our suspicion is that maybe another plugin in your project is using the same identifier for requesting permissons. To that end, could you share your |
JeroenWeener
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please update the version number in pubspec.yaml and add a changelog entry in CHANGELOG.md?
..._handler_android/android/src/main/java/com/baseflow/permissionhandler/PermissionManager.java
Outdated
Show resolved
Hide resolved
..._handler_android/android/src/main/java/com/baseflow/permissionhandler/PermissionManager.java
Outdated
Show resolved
Hide resolved
4f9962d to
592144d
Compare
post_notification, locations)
592144d to
55bff30
Compare
..._handler_android/android/src/main/java/com/baseflow/permissionhandler/PermissionManager.java
Outdated
Show resolved
Hide resolved
…permissionhandler/PermissionManager.java Co-authored-by: Jeroen Weener <[email protected]>
JeroenWeener
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your contribution @jinchengwu-ola! We hope to see more of you in the future 😄
Reply already submitted in Android 13 while user request permissions (eg. post_notification, locations)
List at least one fixed issue.
Fatal Exception: java.lang.RuntimeException
Failure delivering result ResultInfo{who=@android:requestPermissions:, request=24, result=-1, data=Intent { act=android.content.pm.action.REQUEST_PERMISSIONS (has extras) }} to activity: java.lang.IllegalStateException: Reply already submitted
io.flutter.embedding.engine.dart.DartMessenger$Reply.reply (DartMessenger.java:435)
io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler$1.success (MethodChannel.java:263)
com.baseflow.permissionhandler.g.a (Unknown Source:2)
com.baseflow.permissionhandler.n.onRequestPermissionsResult (PermissionManager.java:173)
io.flutter.embedding.engine.FlutterEngineConnectionRegistry$FlutterEngineActivityPluginBinding.onRequestPermissionsResult (FlutterEngineConnectionRegistry.java:779)
io.flutter.embedding.engine.FlutterEngineConnectionRegistry.onRequestPermissionsResult (FlutterEngineConnectionRegistry.java:411)
io.flutter.embedding.android.FlutterActivityAndFragmentDelegate.onRequestPermissionsResult (FlutterActivityAndFragmentDelegate.java:761)
io.flutter.embedding.android.FlutterActivity.onRequestPermissionsResult (FlutterActivity.java:795)
Pre-launch Checklist
pubspec.yamlwith an appropriate new version according to the pub versioning philosophy, or this PR is does not need version changes.CHANGELOG.mdto add a description of the change.///).main.dart format .and committed any changes.flutter analyzeand fixed any errors.