transistor-background-fetch
transistor-background-fetch copied to clipboard
Display JobId for custom task scheduling
This would be nice to add a debug log for custom task JobId when scheduleTask is called.
This way, we could test custom task with the JobScheduler:
adb shell cmd jobscheduler run -f ${packageName} ${customTaskJobId}
This will be done.
Ok, this is merged now. The RN version react-native-background-fetch is published to 4.1.8.
$ adb logcat *:S TSBackgroundFetch
TSBackgroundFetch: - registerTask: com.transistorsoft.customtask (jobId: -359368280) <--- jobId added
Copy jobId above and paste into adb shell command:
$ adb shell cmd jobscheduler run -f your.package.name -359368280