Closed shuma closed 4 years ago
Thanks for filling an issue. Can you please tell us which app you are using? 9 out of 10 times the reason for this to happen is that the Android app isn't a "debug" build. This is a build where the Webview is enabled to be accessible.
We created on simple react native app that have webview component. Still getting the same issue when build the app in "debug" build. Build a debug APK in the command line like this: :gradlew assembleDebug
You need to adjust your build for that one, not through the command line, see https://github.com/react-native-community/react-native-webview/blob/master/docs/Debugging.md#android--chrome
Because this is not an issue with the boilerplate and the app itself I'm going to close the issue, it's still open for discussion
Build a bew debug build, enabled web contents debugging in Main.java. Created a new app-debug.apk file, fix correct chromedriver version. It runs but and the log is:
[0-0] [ 'NATIVE_APP', 'WEBVIEW_chrome' ]
[0-0] [ 'NATIVE_APP', 'WEBVIEW_chrome' ]
[0-0] [ 'NATIVE_APP', 'WEBVIEW_chrome' ]
It opens the app then but quickly close the app then it get stuck like this doing nothing. @wswebcreation
Can you share your script then because it is now showing the webview, you only need to switch to it
This my wdio.android.conf.js:
our simple test app.webview.spec.js
And what is not working now?
It can only switch to webview when open a google chrome browser in the emulator, I dont think it finds the webview in the app itself. It get stuck doing nothing, getting no error.
have you tried building a tiny rn app with this bolierplate, if so can you share it with me?
@shuma
A demo app can be found here https://github.com/webdriverio/native-demo-app
It works like it should.
Describe your question with as much detail as possible The WebView context does not load in Android, it works in iOS.
If it's about a specific piece of code, try and include some of it to support your question. iOS output
Android output
Environment (please complete the following information):