Skip to content

Conversation

@OS-pedrogustavobilro
Copy link
Collaborator

Description

The WebView client's onReceivedError is called for errors in loading the main page and also any sub-resources it may have.

Currently if one of those sub-resources fails to load because it has an unresolvable domain, the library show's an error screen, even though the actual page can load successfully.

The fix involves only showing an error screen if the error received is for the main page, using isForMainFrame property. That way, if the main page is unresolvable (e.g. no network connection), we show an error.

Context

https://outsystemsrd.atlassian.net/browse/RMET-4937

Type of changes

  • Fix (non-breaking change which fixes an issue)
  • Feature (non-breaking change which adds functionality)
  • Refactor (cosmetic changes)
  • Breaking change (change that would cause existing functionality to not work as expected)

Tests

Refer to JIRA ticket above for reproduction info.

See this older MABS build with issue vs this MABS build with the fix

To fix CI error in matching bundler version with fastlane
To fix CI error in matching bundler version with fastlane
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.

3 participants