From 6f7e492f7c5be43a0e8fc8f3f99b6e592b51f9fa Mon Sep 17 00:00:00 2001 From: Yashwanth Kumar <154423689+24Yashwanth24@users.noreply.github.com> Date: Sat, 17 May 2025 19:36:20 +0530 Subject: [PATCH] docs: Update ANDROID_SETUP.md --- ANDROID_SETUP.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/ANDROID_SETUP.md b/ANDROID_SETUP.md index 6c519a66..700d4d16 100644 --- a/ANDROID_SETUP.md +++ b/ANDROID_SETUP.md @@ -11,6 +11,20 @@ Check if you have the following in your `AndroidManifest.xml` file. Ideally you should have this, if not follow the [upgrade guide](https://github.com/flutter/flutter/wiki/Upgrading-pre-1.12-Android-projects). If for some reason you can't upgrade yet we still support the [older way of embedding](ANDROID_SETUP_V1.md): +In your `pubspec.yaml` file, add: +```yaml +dependencies: + workmanager: + git: + url: https://github.com/fluttercommunity/flutter_workmanager.git + path: workmanager + ref: main + ``` +instead of +```yaml +dependencies: + workmanager: ^0.5.2 + ``` # How to Debug my background job Debugging a background task can be difficult, Android decides when is the best time to run.