flutter_workmanager icon indicating copy to clipboard operation
flutter_workmanager copied to clipboard

[Doc] IOS Backgroung processing didn't work on simulator

Open ghost opened this issue 3 years ago • 1 comments

  • [x] I have read the README
  • [x] I have done the setup for Android
  • [x] I have done the setup for iOS
  • [x] I have ran the sample app and it does not work there

Version

Technology Version
Workmanager version
Xcode version
Swift version
iOS deployment target

Describe the error https://developer.apple.com/documentation/backgroundtasks/bgtaskscheduler/error/code/unavailable The doc should mention : app running on Simulator doesn’t support background processing.

Capture d’écran 2022-06-02 à 13 55 50

Else this error will appear :

flutter: PlatformException(bgTaskSchedulingFailed(Error Domain=BGTaskSchedulerErrorDomain Code=1 "(null)") error, Scheduling the task using BGTaskScheduler has failed.

This may be due to too many tasks being scheduled but not run.

See the error for details: Error Domain=BGTaskSchedulerErrorDomain Code=1 "(null)"., null, null)
flutter: 
#0      StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:607:7)
#1      MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:177:18)
<asynchronous suspension>
#2      Workmanager.registerOneOffTask (package:workmanager/src/workmanager.dart:186:7)
<asynchronous suspension>

Output of flutter doctor -v

ghost avatar Jun 02 '22 11:06 ghost

This bug was fixed? I have the same problem

LucasGois1 avatar Aug 11 '23 22:08 LucasGois1