douglasjunior / react-native-recaptcha-that-works

⚛ A reCAPTCHA bridge for React Native that works (Android and iOS)
MIT License
164 stars 33 forks source link

[Android] Failed to call method WebViewMessageHandler1.onMessage() #53

Closed anisimov74 closed 4 months ago

anisimov74 commented 4 months ago

Hi! @douglasjunior I got an error message on Android [Android] Failed to call method WebViewMessageHandler1.onMessage(). Module has not been registred as callable.

react-native": "0.71.11 "react-native-webview": "^13.8.6"

Any ideas why it happens?

Thank you for your efforts.

douglasjunior commented 4 months ago

Hi @anisimov74, probably the auto-linking of react-native-webview didn't happen as expected.

Please, take a look at theLink native dependencies section of the react-native-webview: https://github.com/react-native-webview/react-native-webview/blob/master/docs/Getting-Started.md#2-link-native-dependencies

anisimov74 commented 4 months ago

@douglasjunior I solved the problem by cleaning and rebuilding Android project.

douglasjunior commented 4 months ago

Nice!