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

Add error handling with service.onError(callback)? #498

Open
leaf-node opened this issue Jan 4, 2025 · 0 comments
Open

Add error handling with service.onError(callback)? #498

leaf-node opened this issue Jan 4, 2025 · 0 comments

Comments

@leaf-node
Copy link

Thanks for the great plugin. : )

When manually constructing a Dart Isolate, it's possible to use Isolate.addErrorListener to effectively catch all exceptions and errors, passing them as messages to the calling Isolate. It would be great if Flutter Background Service supported this type of behavior.

If it did so, the it could present these errors via a service.onError method similar to service.on. This would reduce the need to wrap all parts of the back end in try { } catch { } blocks.

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

No branches or pull requests

1 participant