Skip to content

🐞[Enter Bug Description] PlatformException (PlatformException(bgTaskSchedulingFailed(Error Domain=BGTaskSchedulerErrorDomain Code=1 "(null)") error, Scheduling the task using BGTaskScheduler has failed. #441

Closed

Description

@Mariluk
  • 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 5.0.1
Xcode version 14.0.1
Swift version 5.7
iOS deployment target 11.0

Describe the error
Describe error
Tested both in my application and in the example project of the super plugin

Output of Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel stable, 3.3.7, on macOS 12.6 21G115 darwin-x64, locale cs-CZ) Checking Android licenses is taking an unexpectedly long time...[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0) [✓] Xcode - develop for iOS and macOS (Xcode 14.0.1) [✓] Chrome - develop for the web [✓] Android Studio (version 2021.3) [✓] VS Code (version 1.73.0) [✓] Connected device (4 available) [✓] HTTP Host Availability

Activity

  1. xunreal75 commented on Nov 3, 2022

    @xunreal75
    Contributor

    Hi

    Please check following

    The user has disabled background refresh in settings.
    The app is running on Simulator which doesn’t support background processing.
    The extension either hasn’t set RequestsOpenAccess to YES in The Info.plist File, or the user hasn’t granted open access.

    I will add implementation of check for background refresh rights

    Thanks for your Feedback

  2. Mariluk commented on Nov 4, 2022

    @Mariluk
    Author

    oh, I ran the app in the simulator. Thanks for letting me know that it's not possible on the simulator. I couldn't find it anywhere. It's working.

  3. ened commented on Nov 5, 2022

    @ened
    Collaborator

    PRs welcome to update the README, @Mariluk - thank you!

  4. harunme3 commented on Apr 15, 2026

    @harunme3

    WorkmanagerPlugin.setPluginRegistrantCallback { (registry) in
    GeneratedPluginRegistrant.register(with: registry)
    }
    Add this to the AppDelegate.swift file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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