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

useOnDownloadStart not working on release build #272

Closed
arashAndroid opened this issue Jan 26, 2020 · 2 comments
Closed

useOnDownloadStart not working on release build #272

arashAndroid opened this issue Jan 26, 2020 · 2 comments

Comments

@arashAndroid
Copy link

arashAndroid commented Jan 26, 2020

Environment

**Flutter version:Flutter 1.12.13+hotfix.5 • channel stable
**Plugin version:Using latest master (git)
**Android version:8

**Device information:LG H990

Description

Expected behavior: Download File in release build

Current behavior: Not downloading file on release mode, only working in debug build

Steps to reproduce

I am Using this code to run InAppWebView:

return isLoaded
        ? Scaffold(
            appBar: AppBar(
              title: Text(appTitle),
              backgroundColor: colorAccent,
            ),
            body: InAppWebView(
              initialUrl: link,
              initialHeaders: {},
              initialOptions: InAppWebViewWidgetOptions(
                crossPlatform: InAppWebViewOptions(
                  debuggingEnabled: true,
                  useOnDownloadStart: true,
                ),
              ),
              onDownloadStart: (controller, dUrl) {
                print('downloading | link = $dUrl');
                _launchUrl(dUrl);
              },
              onWebViewCreated: (InAppWebViewController controller) {},
              onLoadStart: (InAppWebViewController controller, String url) {},
              onLoadStop:
                  (InAppWebViewController controller, String url) async {},
            ),
          )
        : Scaffold(
            appBar: AppBar(
              title: Text(appTitle),
              backgroundColor: colorAccent,
            ),
            body: Center(
              child: CircularProgressIndicator(),
            ),
          );
  1. There is a file in the link that I can click and download a file. This code works on debug build but in release build nothing happens and no error is shown.

Tried it without the debuggingEnabled: true, did not work.

@pichillilorenzo
Copy link
Owner

Fixed from release 3.0.0+.

This was referenced Jul 6, 2020
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants