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

fix(POM-331): Crash while parsing result in activity contract #161

Merged
merged 1 commit into from
Jan 30, 2024

Conversation

vitalii-vanziak-cko
Copy link
Collaborator

Description

In low memory condition Android can persist activity result and parse it in its own process using framework class loader, which cannot load classes from SDK.

Fatal Exception: android.os.BadParcelableException: ClassNotFoundException when unmarshalling: com.processout.sdk.core.ProcessOutActivityResult$Success

Solution

setExtrasClassLoader() when parsing result in all activity contracts.

Jira Issue

https://checkout.atlassian.net/browse/POM-331

@vitalii-vanziak-cko vitalii-vanziak-cko merged commit 222ffaa into master Jan 30, 2024
1 check passed
@vitalii-vanziak-cko vitalii-vanziak-cko deleted the feat/POM-331/activity-result-crash branch January 30, 2024 11:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants