Closed AngelRmrz closed 1 month ago
You need to register a dedicated taskId in your plist specifically for .scheduleTask
Can you be more specific @christocracy? I thought that its all referred to the first one, on this case will be the com.transistorsoft.fetch
but if i understand correctly, this one is just to activate the background manager, i need one more per task or bunch of task?
This will not run on iOS.
BackgroundFetch.scheduleTask({
taskId: DOWNLOAD_TASK_ID,
delay: 0,
forceAlarmManager: true,
}).then((taskId) => {
console.log('[js] Task scheduled: ', taskId);
});
<array>
<string>com.transistorsoft.fetch</string>
</array>
react-native-background-fetch": "^4.2.2"
iOs
17.0.1
Simulator / iPhone 12
react-native -v
):0.72.6
On this case we use an
.env
but it iscom.transistorsoft.fetch
This is my
info.plist
config:And this is my
AppDelegate.mm
config:The expected behavior will be the output of the
console.log()
statements, but on every time i keep receiving this log:"No se pudo completar la operación. Background procssing task was not registered in AppDelegate didFinishLaunchingWithOptions. See iOS Setup Guide."