-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Is there an existing issue for this?
- I have searched the existing issues
Current Behavior
When using InAppBrowser on Android, plugins that also use native Android Functions and require to receive activity result callbacks do not work anymore.
For example, in the permission_handler plugin, when requesting a permission, the Future never completes since the plugin is waiting for the activity result internally, which is instead delivered to the browser.
I am currently working around this by temporarily reordering my backstack so that flutter is in the foreground briefly while I use certain plugins.
Expected Behavior
The browser should make an effort to forward activity results to other plugins registered/to the main flutter activity.
Steps with code example to reproduce
- Get permission_handler
- Open any webpage in InAppBrowser
- After the page has loaded, attempt to request a permission. e.g. await Permission.Camera.request()
- The function will never complete
Stacktrace/Logs
Flutter version
v3.41.2
Operating System, Device-specific and/or Tool
Android 16
Plugin version
6.1.5
Additional information
No response
Self grab
- I'm ready to work on this issue!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working