Background: We are migrating our CC 2.1 project to CC3.3 and we found out that game kept crashing when a certain webview was loaded. After tracing down the errors, it was due to Webview’s onJsCallback.
To replicate, we can simply follow the official guide and the app will crash when JS interface scheme is loaded (eg: testkey://a=1&b=2 ).
Thanks for the feedback, I can reproduce this crash problem on your demo. version 3.3.0
Please try to modify this, and then try to see if it works.
CocosWebView.java line 156
Sorry. I could not fix it
Might be I was fixing the wrong file?
Is that the right path?
/Applications/CocosCreator/Creator/3.3.0/CocosCreator.app/Contents/Resources/resources/3d/engine-native/cocos/platform/android/java/src/com/cocos/lib