Skip to content

Conversation

@yccheok
Copy link

@yccheok yccheok commented Oct 30, 2025

  1. Use removeScriptMessageHandlers to prevent memory leaks.

  2. Recreate the web view when it turns blank.

Reference: https://nevermeant.dev/handling-blank-wkwebviews/

We avoid using a timer-based solution since it's resource-intensive. Instead, we've observed that blank issues typically occur when the app is restored from the background. Therefore, a one-time check is performed during background restoration.

2. Recreate the web view when it turns blank.

Reference: https://nevermeant.dev/handling-blank-wkwebviews/

We avoid using a timer-based solution since it's resource-intensive. Instead, we've observed that blank issues typically occur when the app is restored from the background. Therefore, a one-time check is performed during background restoration.
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.

1 participant