react-native-background-fetch: No task request with identifier has been scheduled

Your Environment

  • Plugin version: 4.1.2
  • Platform: iOS
  • OS version: 16.0.2
  • Device manufacturer / model: iPhone
  • React Native version (react-native -v): “0.68.2”
  • Plugin config

Expected Behavior

The simulated background task runs.

Actual Behavior

The simulated background task never runs.

Steps to Reproduce

  1. Check Fetch/Processing in capabilities file
  2. Added Transistorsoft string to plist
  3. Added changes to AppDelegate.m
  4. Added node_modules/react-native-background-fetch/ios/RNBackgroundFetch/RNBackgroundFetch+AppDelegate.m to project

Context

Simulate background task.

Debug logs

iOS

(lldb) e -l objc – (void)[[BGTaskScheduler sharedScheduler] _simulateLaunchForTaskWithIdentifier:@“com.transistorsoft.fetch”] 2022-10-11 17:33:48.620501-0700 RealityMaps[2318:156959] Simulating launch for task with identifier com.transistorsoft.fetch 2022-10-11 17:33:48.803767-0700 RealityMaps[2318:156959] Simulating launch for task with identifier com.transistorsoft.fetch 2022-10-11 17:33:51.256109-0700 RealityMaps[2318:157236] No task request with identifier <decode: missing data> has been scheduled 2022-10-11 17:33:51.256726-0700 RealityMaps[2318:157236] No task request with identifier <decode: missing data> has been scheduled

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 15 (6 by maintainers)

Most upvoted comments

I suggest you try the /example app in this repo