Android 4.0.0: a way to handle or silence the checkout web view's console messages
Maintainers usually reply within 1 day
@markmur is already working on this.
Since Nov 23, 2026.
Assessment
This issue has not been assessed yet.
Description
Versions: com.shopify:checkout-kit 4.0.0 (Android), @shopify/checkout-kit-react-native 4.0.1.
What happens: the checkout web view's WebChromeClient (internal/web/CheckoutWebView.kt) overrides onProgressChanged, the geolocation prompts, onPermissionRequest and onShowFileChooser, but not onConsoleMessage. Android's WebView therefore handles the checkout page's console messages itself and writes them to logcat under the chromium tag. Configuration.logLevel does not apply to them: LogWrapper gates only the SDK's own lines.
Some of these messages name the page's URL. On Android development builds we have seen a line of the form Clear-Site-Data header on '<checkout URL>', where the URL is the cart's checkout URL including its key query parameter. That parameter is a secret for the cart. The SDK's own lines carefully redact URLs (redactedUrlForLogging()), so this path seems to be an oversight rather than a choice.
Request: one of:
- handle
onConsoleMessagein the SDK'sWebChromeClientand route console messages throughLogWrapper(soLogLevel.ERRORorNONEkeeps them out of logcat), with URLs redacted as elsewhere; or - a configuration option, or a listener callback, that lets the host app receive or drop console messages; and
- the same option exposed in the React Native module's configuration.
Notes: logcat is not readable by other apps on modern Android, so the exposure is limited to USB debugging and shared bug reports. We have not yet checked whether WebView prints these messages in a non-debuggable (release) build.
- Dominant language
- Swift
- Stars
- 7
- Forks
- 6
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 12
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Shopify/checkout-kit
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
Shopify/checkout-kit#1031 ·
Maintainers usually reply within 1 day
All issues in Shopify/checkout-kit
Similar issues
-
🎉 Add RemoteCrabOpen
Difficulty 1/5 Under an hour Newbie friendliness 70/100
jaywcjlove/awesome-mac#4999 ·
Maintainers usually reply within 1 day
-
[Type] Bug
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
wordpress-mobile/GutenbergKit#940 ·
Maintainers usually reply within 1 day
-
pending-maintainer-response pending-triage
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
aws-amplify/amplify-swift#4423 ·
Maintainers usually reply within 2 days
-
tests
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
erkamyaman/unslop-anything#80 ·
Maintainers usually reply within 1 day
-
infra security security-audit severity: low supply-chain
Difficulty 1/5 Under an hour Newbie friendliness 85/100
Maintainers usually reply within 1 day