-
Notifications
You must be signed in to change notification settings - Fork 68
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
xamarin froms android 9 download pause #101
Comments
I'm experiencing a similar issue. When I try do download a file using Genymotion with Android 9, the download begins and fail. The download does not even get started Did you have found a solution for your problem? |
@abdullam09 since you only experience it on a real device, I have no choice but to get a device where @matheusmelato you report this problem with a simulator. Do you also have it on a real device? Are you both able to reproduce this using the sample project in this repository? |
I am also having the same issue on a Samsung S9, Android version 9 (Pie). The problem can temporarily be worked around by clearing data and clearing cache in the Download Manager app in the device settings. After doing so, the download does not pause. However, rebooting the phone causes the issue to recur. |
@tfalasco as of your description, it sounds like a problem with the Android internal download-manager. Can you please check if you also get the problem when not using Xamarin Forms - e.g. when using the sample I included in the repository here? |
Similar problem here with Samsung Galaxy A40 and Huawai P10 (both Android 9): |
@prenner0 can you confirm that it also happens using the sample application included in this repo? |
Will try the example as well - temporary fix for us: Use http instead of https and allow clear text transfer. Maybe the issue is due to the security settings of the download manager. |
Yes, it happens for me with the example project using the Android device emulator that Visual Studio instantiates (emulating a Pixel of some flavor). Simply updating the example project from Android 7.1 (which works) to Android 9.0 (compile and target options), causes the download to fail with HTTP error code 400. The example is already using http (not https). Apparently beginning with Android 9.0, clear text is disallowed by default. It can be allowed by adding android:usesCleartextTraffic="true" in the Android manifest of the project. After adding that to the example project, the download was able to complete successfully (thanks @prenner0 for the note). |
Could you please create a PR for this? I have quite little time at hand these days and am not actively involved with app development anymore. Therefore I can't guarantee to spend much time this repo in the foreseeable future. |
Hi,
issue:
Expected behavior
it should go from initializing to running
Actual behavior
Tell us what happens instead
it remains in pause
Configuration
Platform:
Device:
poco phone rooted and running android pie LineageOS
The text was updated successfully, but these errors were encountered: