-
Notifications
You must be signed in to change notification settings - Fork 248
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
Сrash after completing a workmanager task #5191
Comments
Hello @eslavyansky - Thanks for opening the issue. We will look into this. I will let you know if we need more info. |
Hello @eslavyansky I was able to reproduce the issue you described. WorkManager is stopping the Flutter engine which deinitializes all of our native plugins as you can see from this stack trace:
We currently don't support amplify isolates, but I created a feature request to support isolates and included a section for workmanager. However we shouldn't be crashing the app when the Flutter Engine is stopped, so I will mark this as a bug so we can add proper error handling and logging for this situation. Please note that push notifications still will not work since the Flutter engine will still be stopped, but the app shouldn't crash. We will get back to you once the error handling is implemented. |
Description
After completing the workmanager task, the application crashes when receiving a push notification.
Categories
Steps to Reproduce
Screenshots
No response
Platforms
Flutter Version
3.22.3
Amplify Flutter Version
2.3.0
Deployment Method
Custom Pipeline
Schema
No response
The text was updated successfully, but these errors were encountered: