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

Crash fix when notification actions is used for foreground service #1714

Merged

Conversation

arnoldlaishram
Copy link
Contributor

Issue -
When NotificationAction is used for foreground service, getting the below error.

Failed to handle method call
Unhandled Exception: PlatformException(error, Parcelable encountered IOException writing serializable 
object (name = com.dexterous.flutterlocalnotifications.ForegroundServiceStartParameter), null, java.lang.RuntimeException: Parcelable encountered IOException writing serializable 
object (name = com.dexterous.flutterlocalnotifications.ForegroundServiceStartParameter

Upon debugging I found that NotificationAction was not implementing Serializable.

Fix -

Making NotificationAction Serializable to support notification actions when notification is started as foreground service

Making NotificationAction Serializable to support  notification actions when notification is started as foreground service
@MaikuB
Copy link
Owner

MaikuB commented Sep 23, 2022

Thanks!

@MaikuB MaikuB merged commit 00ebd37 into MaikuB:master Sep 23, 2022
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

Successfully merging this pull request may close these issues.

2 participants