Skip to content
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

Website components are not responding when dialog is opened/closed #2502

Open
1 of 2 tasks
RajDevWilson opened this issue Jan 15, 2025 · 0 comments
Open
1 of 2 tasks
Labels
bug Something isn't working

Comments

@RajDevWilson
Copy link

RajDevWilson commented Jan 15, 2025

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

The issue occurred only in ios when the InAppWebView is integrated inside a page with appBar and a dialog/popup is opened when an icon button is pressed from that page's app bar and then the dialog/popup is closed, then the button components inside the website the InAppWebView loaded will not respond or work.

Expected Behavior

The website should respond even after closing any dialog/popup in the page where InAppWebView is integrated

Steps with code example to reproduce

Steps with code example to reproduce
InAppWebView(
            initialSettings: InAppWebViewSettings(
                clearCache: true,
                javaScriptEnabled: true,
                clearSessionCache: true,
                cacheMode: CacheMode.LOAD_NO_CACHE,
                allowUniversalAccessFromFileURLs: true,
                allowFileAccessFromFileURLs: true,
                javaScriptCanOpenWindowsAutomatically: true,
                mediaPlaybackRequiresUserGesture: false,
                allowsInlineMediaPlayback: true,
                allowsBackForwardNavigationGestures: true,
                suppressesIncrementalRendering: false, // Ensure rendering isn't pause
            ),
            initialUrlRequest: URLRequest(
              url: WebUri(loadUrl),
              cachePolicy: URLRequestCachePolicy.RELOAD_IGNORING_LOCAL_AND_REMOTE_CACHE_DATA,
            ),
            onWebViewCreated: (InAppWebViewController inAppWebViewController) {
              localInAppWebViewController = inAppWebViewController;
            },
            onProgressChanged: (InAppWebViewController inAppWebViewController, int progressFromServer) {
              setState(() {
                progress = progressFromServer / 100;
              });
            },
            onPermissionRequest: (InAppWebViewController controller, PermissionRequest request) async {
              // Check which permissions are being requested
              if (request.resources.contains("android.webkit.resource.VIDEO_CAPTURE")) {
                debugPrint("🎥 Camera access requested.");
              }
              if (request.resources.contains("android.webkit.resource.AUDIO_CAPTURE")) {
                debugPrint("🎤Microphone access requested.");
              }

              // Automatically grant permission for all requested resources
              return PermissionResponse (
                  resources: request.resources,
                  action: PermissionResponseAction.GRANT
              );
            },
          )

Stacktrace/Logs

Stacktrace/Logs
No logs

Flutter version

v3.26.0-1.0.pre.257

Operating System, Device-specific and/or Tool

iOS 18.2

Plugin version

v6.1.5

Additional information

No response

Self grab

  • I'm ready to work on this issue!
@RajDevWilson RajDevWilson added the bug Something isn't working label Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant