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

Does not work on iOS 17.5 iPhone 15 Pro Max #2455

Open
1 of 2 tasks
karmicdice opened this issue Dec 11, 2024 · 3 comments
Open
1 of 2 tasks

Does not work on iOS 17.5 iPhone 15 Pro Max #2455

karmicdice opened this issue Dec 11, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@karmicdice
Copy link

karmicdice commented Dec 11, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Loads the webview but cannot start the page load

Expected Behavior

Load the page

Steps with code example to reproduce

Steps with code example to reproduce
InAppWebView(
                    initialUrlRequest: URLRequest(
                      url: WebUri('https://www.example.com')
                    ),
                        initialSettings: InAppWebViewSettings(
                          javaScriptEnabled: true,
                          clearCache: true,
                          transparentBackground: true,
                          supportZoom: false,
                          allowFileAccessFromFileURLs: true,
                          allowUniversalAccessFromFileURLs: true,
                          useHybridComposition: true,
                        ),
                    onWebViewCreated: (controller) {
                      print('WebView created successfully');
                    },
                    onLoadStart: (controller, url) {
                      print('Page started loading: $url');
                    },
                    onLoadStop: (controller, url) {
                      print('Page finished loading: $url');
                    },
                    onLoadError: (controller, url, code, message) {
                      print('Load Error: code $code, message: $message');
                    },
                    onReceivedError: (controller, request, error) {
                      print('Received Error: ${error.description}');
                    },
                    onConsoleMessage: (controller, consoleMessage) {
                      print('Console Message: ${consoleMessage.message}');
                    },
                  )

Stacktrace/Logs

Stacktrace/Logs
flutter: WebView created successfully
[IOSInAppWebViewWidget] (iOS) IOSInAppWebViewWidget ID 0 calling "onWebViewCreated" using []
[IOSInAppWebViewController] (iOS) WebView ID 0 calling "onUpdateVisitedHistory" using {url: https://example.com/, isReload: null}

Flutter version

3.24.5

Operating System, Device-specific and/or Tool

iOS 17.5

Plugin version

6.1.5

Additional information

No response

Self grab

  • I'm ready to work on this issue!
@karmicdice karmicdice added the bug Something isn't working label Dec 11, 2024
@cade-2
Copy link

cade-2 commented Dec 12, 2024

same here ios 18.0 iphone 16 not load

[IOSInAppWebViewWidget] (iOS) IOSInAppWebViewWidget ID 0 calling "onWebViewCreated" using [] [IOSInAppWebViewController] (iOS) WebView ID 0 calling "onUpdateVisitedHistory" using {url: https://www.youtube.com/, isReload: null} [IOSInAppWebViewWidget] (iOS) IOSInAppWebViewWidget ID 1 calling "onWebViewCreated" using [] [IOSInAppWebViewController] (iOS) WebView ID 1 calling "onUpdateVisitedHistory" using {isReload: null, url: https://www.youtube.com/} [IOSInAppWebViewWidget] (iOS) IOSInAppWebViewWidget ID 2 calling "onWebViewCreated" using [] [IOSInAppWebViewController] (iOS) WebView ID 2 calling "onUpdateVisitedHistory" using {isReload: null, url: https://www.youtube.com/} [IOSInAppWebViewWidget] (iOS) IOSInAppWebViewWidget ID 3 calling "onWebViewCreated" using [] [IOSInAppWebViewController] (iOS) WebView ID 3 calling "onUpdateVisitedHistory" using {url: https://www.youtube.com/, isReload: null} [IOSInAppWebViewController] (iOS) WebView ID 0 calling "onProgressChanged" using {progress: 0}

@crazecoder
Copy link
Contributor

useShouldOverrideUrlLoading: false

@pichillilorenzo
Copy link
Owner

Please post full minimal code to reproduce the issue.
@cade-2 in your case, it seems it could be caused by something not set correctly on your Flutter code, as the widget seems to be rebuilt every time.
Are you using Keys correctly? Maybe use a GlobalKey or try to understand why your widget tree is being rebuilt.

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

4 participants