ionic-team / ionic-team/capacitor-background-runner

No error handling in background runners

Open
#155 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
C
Stars
56
Forks
36
Avg merge
4d 12h
Merged PRs (30d)
7

Description

I had an error in my code, preventing it from scheduling notifications, but there was no errors in the logs and the worker job succeeded.
My code was failing silently.
I've tried using global try catch statement, but to no surprise, there was nothing passed to catch clause - error is undefined.

The only way to debug the code currently is to wrap it with multiple try catch statements to try to find the problem.

I don't expect a runner to have a whole call stack error handling provided, but at least some kind of basic message printed as a string in the logcat should be provided.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.