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

[WEB] navigationDelegate does not work #77

Open
ahetawal-p opened this issue Apr 14, 2022 · 2 comments
Open

[WEB] navigationDelegate does not work #77

ahetawal-p opened this issue Apr 14, 2022 · 2 comments

Comments

@ahetawal-p
Copy link

Using this from the examples:

Expanded(
                          flex: 1,
                          child: EasyWebView(
                            src: src,
                            onLoaded: (_) {
                              print('$key: Loaded: $src');
                            },
                            isMarkdown: _isMarkdown,
                            convertToWidgets: _useWidgets,
                            key: key,
                            options: WebViewOptions(
                              navigationDelegate: (request) {
                                print('allowing navigation to $request');
                                return WebNavigationDecision.navigate;
                              },
                            ),
                          )),

I dont see any print statements for the url being loaded on Web platform.

@chillbrodev
Copy link

@rodydavis This is also a blocker for using this package on web. It works fine on mobile but it is not getting called on web. Could you take a look at this issue when you get a moment? Sorry for the double tag, meant to tag you here.

@rodydavis
Copy link
Owner

I am certain this is because of the limitations due to web needing to use an iframe and having a sandbox.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants