-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
bug: webView.engine.evaluateJavascript is undefined for Android #5390
Comments
Can you provide a sample app reproducing the issue? |
I'll try to do it |
@jcesarmobile Here's a sample application that throws this error on Android but not in iOS. |
Hey guys, any plans for updating this issue? |
This was resolved in this PR: timbru31/cordova-plugin-lottie-splashscreen#438 The maintainer of the Lottie plugin has been too busy to create a release though so you would need to install with: |
Awesome, this solves my problem, thank you very much!! |
I had another plugin that had the same problem - cordova-plugin-ouath and this was fixed in the plugin as well, but it would save a lot of fixes in other plugins to fix this issue in the cordova mock object in Android in this repo. |
Bug Report
Capacitor Version
Platform(s)
Android
Current Behavior
I found this bug when add the lottie splashscreen plugin
cordovaAndroidVersion
in android/variables.gradle was bumped to 10.1.1After launch app crashed with error like
Can't call method 'evaluateJavascript' on null object reference
atLink to this function in original repo:
https://github.com/timbru31/cordova-plugin-lottie-splashscreen/blob/123cd81794d35132dd69c44e6eae11e6f96ed1ab/src/android/LottieSplashScreen.kt#L275
Expected Behavior
webView.engine
is defined,evaluateJavascript
called successfullyThe similar bug was on IOS platform: #4039, but Android still have a bug
Code Reproduction
Other Technical Details
npm --version
output: 8.3.2node --version
output:v16.13.2Additional Context
The text was updated successfully, but these errors were encountered: