Skip to content

Sumeru / #1013 - Improve WebView creation error handling for in-app messages#1033

Closed
sumeruchat wants to merge 2 commits intomasterfrom
sumeru/1013-fix-fatal-inapp-webview-exception
Closed

Sumeru / #1013 - Improve WebView creation error handling for in-app messages#1033
sumeruchat wants to merge 2 commits intomasterfrom
sumeru/1013-fix-fatal-inapp-webview-exception

Conversation

@sumeruchat
Copy link
Copy Markdown
Contributor

@sumeruchat sumeruchat commented Apr 7, 2026

Summary

  • Catch all Throwable types (including Error subclasses like UnsatisfiedLinkError) during WebView creation, not just RuntimeException
  • Notify host app via clickCallback when WebView creation fails, so the app is aware the in-app couldn't be shown
  • Add detailed logging with messageId when WebView creation fails

Test plan

  • Verify in-app messages still display normally when WebView is healthy
  • Verify graceful degradation when WebView is unavailable (e.g., disabled Chrome/System WebView)
  • Verify the click callback is invoked with null when WebView fails
  • Verify no crash occurs regardless of WebView state

🤖 Generated with Claude Code

Catch all Throwable types during WebView creation to handle Error
subclasses like UnsatisfiedLinkError. Notify host app via callback
when WebView creation fails.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@sumeruchat sumeruchat self-assigned this Apr 7, 2026
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@sumeruchat sumeruchat changed the title Sumeru - #1013 Improve WebView creation error handling for in-app messages Sumeru / #1013 - Improve WebView creation error handling for in-app messages Apr 7, 2026
@franco-zalamena-iterable franco-zalamena-iterable deleted the sumeru/1013-fix-fatal-inapp-webview-exception 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