Skip to content

Sumeru / #638 - Prevent TransactionTooLargeException for large in-app messages#1036

Closed
sumeruchat wants to merge 1 commit intomasterfrom
fix/638-transaction-too-large-in-app
Closed

Sumeru / #638 - Prevent TransactionTooLargeException for large in-app messages#1036
sumeruchat wants to merge 1 commit intomasterfrom
fix/638-transaction-too-large-in-app

Conversation

@sumeruchat
Copy link
Copy Markdown
Contributor

@sumeruchat sumeruchat commented Apr 7, 2026

Summary

  • Strip HTML content from fragment arguments during onSaveInstanceState to avoid exceeding the Binder transaction limit (~1MB) when large in-app HTML (>250KB) is persisted via the saved state bundle.
  • Gracefully dismiss the in-app notification fragment if HTML content is unavailable after state restoration (e.g., when it was stripped to prevent the crash).

Test plan

  • Verify that in-app messages with large HTML content (>250KB) no longer cause TransactionTooLargeException when the activity goes through save/restore state cycles (e.g., backgrounding the app, rotating the device).
  • Verify that if the fragment is recreated after state restoration with stripped HTML, it dismisses gracefully without a crash.
  • Verify that normal-sized in-app messages continue to display and function correctly.
  • Verify that in-app open tracking is not duplicated on state restoration.

🤖 Generated with Claude Code

Strip HTML content from fragment arguments during onSaveInstanceState to
avoid exceeding the Binder transaction limit with large in-app HTML.
Gracefully dismiss the fragment if HTML is unavailable after restoration.

Fixes #638

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@sumeruchat sumeruchat changed the title Prevent TransactionTooLargeException for large in-app messages (#638) #638 - Prevent TransactionTooLargeException for large in-app messages Apr 7, 2026
@sumeruchat sumeruchat changed the title #638 - Prevent TransactionTooLargeException for large in-app messages Sumeru / #638 - Prevent TransactionTooLargeException for large in-app messages Apr 7, 2026
@franco-zalamena-iterable franco-zalamena-iterable deleted the fix/638-transaction-too-large-in-app branch April 8, 2026 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants