You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
🐞[Enter Bug Description] PlatformException (PlatformException(bgTaskSchedulingFailed(Error Domain=BGTaskSchedulerErrorDomain Code=1 "(null)") error, Scheduling the task using BGTaskScheduler has failed. #441
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
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
WorkmanagerPlugin.setPluginRegistrantCallback { (registry) in
GeneratedPluginRegistrant.register(with: registry)
}
Add this to the AppDelegate.swift file
Activity
xunreal75 commentedon Nov 3, 2022
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
Mariluk commentedon Nov 4, 2022
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.
ened commentedon Nov 5, 2022
PRs welcome to update the README, @Mariluk - thank you!
feat:Added check for background refresh permissions fluttercommunity#441
feat!: iOS major enhancements BGAppRefreshTask, BGProcessingTask, beg…
harunme3 commentedon Apr 15, 2026
WorkmanagerPlugin.setPluginRegistrantCallback { (registry) in
GeneratedPluginRegistrant.register(with: registry)
}
Add this to the AppDelegate.swift file