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

🐞[Android production does not work on all phones] #552

Open
3 tasks done
JenteJan opened this issue Apr 25, 2024 · 2 comments
Open
3 tasks done

🐞[Android production does not work on all phones] #552

JenteJan opened this issue Apr 25, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@JenteJan
Copy link

  • I have read the README
  • I have done the setup for Android
  • I have done the setup for iOS
  • [Not applicable] I have ran the sample app and it does not work there

Version

Technology Version
Workmanager version workmanager:
git:  
  url: https://github.com/absar/flutter_workmanager.git
  ref: 73cc539cd2f1b992b468e6c44f5d0a7919d7ffda   |

Describe the error
Describe error
I have implemented the newest version where ios runs immediately after going to bg. All works well on production ios, emulated ios and emulated android, but in production upwards of 80% of android users have a problem where the code does not appear to be running in the bg. I'm fairly certain there are no bugs that could be causing the background code to fail as they only occur on these production android devices. Im wondering if there is any AndroidManifest set up required not currently listed in the android set-up readme. Things I am doing in the background are: running native code, accesing the filesystem and fetching from internet. I am currently wondering if it has something to do with the newest version of android having more restrictions related to background running. I saw the docs for flutter background service at: https://pub.dev/packages/flutter_background_service
which says to do additional set up for android 14+ where you request specific permissions for what bg service you make use of.

Output of flutter doctor -v

also not applicable as any example where i am in a testing environment does not produce the issue

@JenteJan JenteJan added the bug Something isn't working label Apr 25, 2024
@zjnny
Copy link

zjnny commented Jun 18, 2024

Android need to allow background service for your app(Power saving mode or other optimization about background servce will make workmanager not work)

@tim-bacon-fivet
Copy link

I am also having this issue, we are currently in our closed test so have about 24 people using the app with most devices on Android 14, all work as expected except 1 and this 1 is on android 14 as well. I have asked the user to check about the power saving mode etc so will feedback once I hear back. I have triple checked my setup and all is in order.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants