Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display JobId for custom task scheduling #13

Open
vtoupet opened this issue Jan 19, 2023 · 2 comments
Open

Display JobId for custom task scheduling #13

vtoupet opened this issue Jan 19, 2023 · 2 comments

Comments

@vtoupet
Copy link

vtoupet commented Jan 19, 2023

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}

@christocracy
Copy link
Member

This will be done.

@christocracy
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants