-
Notifications
You must be signed in to change notification settings - Fork 936
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
i have a webview (Flutter WebView Plugin) .when user goes to webview and click a link to download a file nothing is happening. Flutter WebView Plugin : https://pub.dartlang.org/packages/flutter_webview_plugin Could you please help me #382
Comments
I/zygote (23872): WaitForGcToComplete blocked NativeAlloc on None for 26.939ms |
I think this might be related to app permissions. Does your app have storage permission? |
@charafau I am facing with the same issue, I've open permission on Android,but anything doesn't happen when click a link for downloading.Can you tell me what should I do? |
@kw2019ltd Have you solved this problem? |
@wbdsnx have you tried to add storage permission to your application? |
@charafau The error is: W/cr_BindingManager(12837): Cannot call determinedVisibility() - never saw a connection for the pid: 12837 |
How can I set a savePath to save my downloads |
@wbdsnx please check this link for permissions on android https://developer.android.com/training/permissions/requesting |
I think is a "native" limitation in flutter and all the plugins that implements a webview. There's an issue also in Flutter flutter/flutter#26373 and post regarding other plugins like flutter_inappbrowser |
@SbGibson well.. it's not flutter limitation because there's no flutter involved in webview, it's just android activity with normal webview in it. So if android can do it, so this plugin can too. It's only matter of properties and permissions you set. |
@charafau Thanks, I said native in Flutter because in Android the webview is usually connected to a DownloadListener and a DownloadManager is used when download starts and in the webview plugins the downloadListener is not exposed. |
@SbGibson I haven't looked into downloading files with webview, seems like we could add that one feature, lots of people are waiting for it. |
@SbGibson Has this pending feature been implemented yet? I looked at the flutter team's plugin and no one has got an answer to the problem of downloading files in a webview. |
@johnny-stevie I've not reviewed the latest version of the code but as there was no support for downloading when we need it we decided to develop our implementation inside the app by "sniffing" urls and opening a new download request specific for that url. |
@SbGibson So this will get added sooner or later in the future in the plugin?
…On Mon, 28 Oct 2019, 12:00 SbGibson, ***@***.***> wrote:
@johnny-stevie <https://github.com/johnny-stevie> I've not reviewed the
latest version of the code but as there was no support for downloading when
we need it we decided to develop our implementation inside the app by
"sniffing" urls and opening a new download request specific for that url.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#382?email_source=notifications&email_token=AKHDUOCIVGE5V3PON2QAV6LQQ3H65A5CNFSM4HFNR3AKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECMUE4Y#issuecomment-546914931>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKHDUOHQF6PSQSQJBJWIEI3QQ3H65ANCNFSM4HFNR3AA>
.
|
i have a webview (Flutter WebView Plugin) .when user goes to webview and click a link to download a file nothing is happening.
Flutter WebView Plugin : https://pub.dartlang.org/packages/flutter_webview_plugin
Could you please help me
The text was updated successfully, but these errors were encountered: