transistorsoft/react-native-background-fetch

iOS > The operation couldn’t be completed. (BGTaskSchedulerErrorDomain error 1.)

rajesh-rt opened this issue · 3 comments

Your Environment

  • Plugin version: 4.2.2
  • Platform: iOS
  • OS version: 14
  • Device manufacturer / model: Simulator
  • React Native version (react-native -v): 0.72.6
  • Plugin config

Expected Behavior

The onEvent() should be called

Actual Behavior

Getting a promise rejection error: The operation couldn’t be completed. (BGTaskSchedulerErrorDomain error 1.)

Steps to Reproduce

  1. Initialise background task
  2. Set delay to 5 sec for scheduled tasks
  3. minimumFetchInterval: 15,

Context

We are trying to delete downloaded files periodically

Debug logs

Your Environment

  • Plugin version: 4.2.2
  • Platform: iOS
  • OS version: 14
  • Device manufacturer / model: Simulator
  • React Native version (react-native -v): 0.72.6
  • Plugin config

Expected Behavior

The onEvent() should be called

Actual Behavior

Getting a promise rejection error: The operation couldn’t be completed. (BGTaskSchedulerErrorDomain error 1.)

Steps to Reproduce

  1. Initialise background task
  2. Set delay to 5 sec for scheduled tasks
  3. minimumFetchInterval: 15,

Context

We are trying to delete downloaded files periodically

Debug logs

  • iOS: '[BackgroundFetch] configure status: ', 2
    2024-02-19 17:58:44.878321+0530 Stackyon[15051:359427] [TSBackgroundFetch scheduleProcessingTask]
    2024-02-19 17:58:44.903356+0530 Stackyon[15051:359427] notifier request success
    2024-02-19 17:58:46.881294+0530 Stackyon[15051:272621] [javascript] Possible Unhandled Promise Rejection (id: 5):
    "The operation couldn’t be completed. (BGTaskSchedulerErrorDomain error 1.)"

Device manufacturer / model: Simulator

See the README

Screenshot 2024-02-19 at 9 33 37 AM

This issue is stale because it has been open for 30 days with no activity.

This issue was closed because it has been inactive for 14 days since being marked as stale.