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
"Worker result FAILURE" on Android #3
Comments
I tried using different urls, both on HTTP and on HTTPS, but I get the same error. |
I can't reproduce your problem. If you don't mind, give me the source code to reproduce it. |
I see the same issue when I run the example from this repository:
On the beta channel:
And dev:
|
Sure, I'll publish my repo soon (probably in next 12 hours): maybe the error is caused by some conflict with other installed packages. |
Here it is: https://github.com/webpn/demo_downloader I just picked the interesting part from my app and placed it into a fresh install of Flutter. If it could be helpful, this is the output from Flutter Doctor:
|
I try your code and it works. btw, what device do you test and Android version? |
I can reproduce this matter on Android Simulator (running Android 28). I am working on it. |
There's a problem with WorkManager library (still in alpha), it causes this plugin failure on Android 26 and above. I need to wait for the next version of WorkManager. |
I tested that code directly on my phone, which runs on Android 8.0.0 (= API level 26). |
There's a significant change of background task policy from API 26. I think it causes our problem. I just created an issue for WorkManager, it's a new project of Google, so it would be updated soon. |
There's a mature library called JobIntentService can address our problem, I think I will consider switching to it |
I got it worked. It's just my stupid mistake when I config NotificationChannel (not the problem of WorkManager library). I've just published v.0.0.4. Let's check it out. |
Yay, it works perfectly! Feature suggestion: new parameter to specify how many concurrent download should be running. |
I can set the max concurrent download task on iOS side (in fact, I set it 5 now) but I don't see anything like that in WorkManager on Android side. I will bring up this feature when I can deal with Android side |
merge from master
I have this problem , can you help me ? java.lang.NullPointerException: uri |
I have the same problem today With: |
Make sure you added this permissions in
In as mentioned in https://stackoverflow.com/a/72889016/11989529
|
Plugin works like a breeze on iOS, but I get an error on Android.
This is what I get from the log:
This is my code:
I know nothing about Android Studio or how to debug Android Apps, so I really don't know how where to start to debug this issue.
Thanks
The text was updated successfully, but these errors were encountered: