-
Notifications
You must be signed in to change notification settings - Fork 29
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
Causes Android App to Crash when installed #19
Comments
maybe it has to do with the permissions |
you mean android permissions? any in particular you were thinking of? Nothing has been required previously and I don't even know if there is a permission to allow insecure connections, I would guess not. |
Was just a guess. Not sure. The whole webview handling on android regarding SSL really sucks. To be honest, I'm currently don't have really much time to investigate on this. |
Hi, I got the same bug, solved by added webView.stopLoading(); after webView.clearCache(); in main execute |
@JulienF22 your fix worked to repair my problem! I have created a pull request for this issue : #23 |
I've publish version 0.6.4 |
So this is a bit of an odd one but hopefully something that might be able to be addressed. Applies to android only, iOS still works fine for me.
A few months back I noticed that when launching my android app I would intermittently get an error thrown up that says "The connection to the server was unsuccessful. (file:///android_asset/www/index.html)"
This is really weird because in every other way the app is loaded and working perfectly, no issues in the console, no errors anywhere. With the most recent updates to the cordova system webview and I guess to the android cordova platform I started getting this every time the app started, making it unusable so actually had to put some time into troubleshooting this.
It was quite annoying to track down as there are no errors anywhere but I did find one other plugin that had encountered a similar error and when it was removed all worked as usual so I removed all plugins from my app and added them back one at a time, building and running after each.
As soon as this certificate plugin is added and trustunsecure(true) is called I immediately get the error on application start up causing the app to crash completely.
If I remove the certificate plugin and re-add all other plugins all works normally. If I leave the plugin installed but do not call any functions on it in Android all is also ok.
I am thinking that this may be related to updates to the system webview. Similarly the crosswalk fork of this plugin doesn't work with the latest versions of crosswalk so I figure if the system webview is also getting actively updated this may well be a similar issue.
This was a real pain to trace down and I definitely still need the ability to connect to sites with self signed (ie invalid) certificates so hopefully a fix can be found. I am happy to provide any more info or explanation needed and help to test any potential fix.
The text was updated successfully, but these errors were encountered: