Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a bridge for console.log message within our app #10455

Open
burtonator opened this issue Dec 27, 2024 · 0 comments
Open

Create a bridge for console.log message within our app #10455

burtonator opened this issue Dec 27, 2024 · 0 comments
Assignees
Labels
2 Half day task bug Something isn't working
Milestone

Comments

@burtonator
Copy link
Collaborator

Describe the bug

We should use injectedJavaScriptBeforeContentLoaded for this so we capture them all ...

 const injectedJS = `
    (function() {
      const originalConsoleError = console.error;
      console.error = function(...args) {
        originalConsoleError.apply(console, args);
        window.ReactNativeWebView.postMessage(JSON.stringify({
          type: 'console.error',
          messages: args
        }));
      };
    })();
  `;

then in react-native we should capture all these but also console.log them and we should save them for the about page so we can see errors in the wild.

Initial conditions

Environment:

Branch/Release version:

Browser:

Wallet:

Reproduction steps

Actual behavior

Expected behavior

Screenshots / Video

Reporter

Additional context

@burtonator burtonator added bug Something isn't working 2 Half day task labels Dec 27, 2024
@burtonator burtonator added this to the Mobile App milestone Dec 27, 2024
@burtonator burtonator self-assigned this Dec 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2 Half day task bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant