Skip to content

🐞[registerPeriodicTask not working properly on android device] #651

@1911denis54-ctrl

Description

@1911denis54-ctrl
  • I have read the README
  • I have done the setup for Android
  • I have done the setup for iOS
  • I have ran the sample app and it does not work there

Version

Technology Version
Workmanager version 0.9.0+3
Xcode version
Swift version
iOS deployment target

Describe the error
Describe error
Maybe I'm doing something wrong but -
Even on example code from this repo not runs periodic task when should, by initialDelay in 10 sec but runs after 10-15 minutes, also here invocation in my code(in my code it not runs at all) -
getIt().registerPeriodicTask(
WorkmanagerKeys.periodicTaskSyncMissionsKey,
WorkmanagerKeys.periodicTaskSyncMissionsKey,
frequency: const Duration(minutes: 15),
constraints: Constraints(
networkType: NetworkType.connected,
requiresBatteryNotLow: false,
requiresCharging: false,
requiresDeviceIdle: false,
requiresStorageNotLow: false,
),
);

registerOneOfTask work well...

Output of flutter doctor -v
flutter doctor -v
[√] Flutter (Channel stable, 3.35.3, on Microsoft Windows [Version 10.0.26100.6584], locale uk-UA) [687ms]
• Flutter version 3.35.3 on channel stable at C:\Users\Denys\fvm\versions\3.35.3
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision a402d9a437 (4 weeks ago), 2025-09-03 14:54:31 -0700
• Engine revision ddf47dd3ff
• Dart version 3.9.2
• DevTools version 2.48.0
• Feature flags: enable-web, enable-linux-desktop, enable-macos-desktop, enable-windows-desktop, enable-android, enable-ios, cli-animations,
enable-lldb-debugging

[√] Windows Version (Windows 11 or higher, 24H2, 2009) [1 893ms]

[√] Android toolchain - develop for Android devices (Android SDK version 36.1.0-rc1) [19,6s]
• Android SDK at C:\src\SDK
• Emulator version 36.1.9.0 (build_id 13823996) (CL:N/A)
• Platform android-36, build-tools 36.1.0-rc1
• ANDROID_SDK_ROOT = C:\src\SDK
• Java binary at: C:\src\AndroidStudio\jbr\bin\java
This is the JDK bundled with the latest Android Studio installation on this machine.
To manually set the JDK path, use: flutter config --jdk-dir="path/to/jdk".
• Java version OpenJDK Runtime Environment (build 21.0.7+-13880790-b1038.58)
• All Android licenses accepted.

[√] Chrome - develop for the web [374ms]
• Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop Windows apps (Visual Studio Build Tools 2022 17.14.13 (August 2025)) [373ms]
• Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools
• Visual Studio Build Tools 2022 version 17.14.36414.22
• Windows 10 SDK version 10.0.26100.0

[√] Android Studio (version 2024.1) [18ms]
• Android Studio at C:\src\Android
• Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 17.0.11+0--11852314)

[√] Android Studio (version 2025.1.3) [15ms]
• Android Studio at C:\src\AndroidStudio
• Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 21.0.7+-13880790-b1038.58)

[√] Connected device (4 available) [729ms]
• 2412DPC0AG (mobile) • TOSW4HSCC65DNBHI • android-arm64 • Android 15 (API 35)
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.26100.6584]
• Chrome (web) • chrome • web-javascript • Google Chrome 140.0.7339.208
• Edge (web) • edge • web-javascript • Microsoft Edge 140.0.3485.66

[√] Network resources [576ms]
• All expected network resources are available.

• No issues found!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions