From b826d5a7e775618409b530019adf8c5d275e7b88 Mon Sep 17 00:00:00 2001 From: Yashwanth Kumar <154423689+24Yashwanth24@users.noreply.github.com> Date: Sat, 17 May 2025 19:21:42 +0530 Subject: [PATCH] Update ANDROID_SETUP.md --- ANDROID_SETUP.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/ANDROID_SETUP.md b/ANDROID_SETUP.md index 6c519a66..b68f5785 100644 --- a/ANDROID_SETUP.md +++ b/ANDROID_SETUP.md @@ -11,6 +11,21 @@ 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.