博文

目前显示的是 九月, 2015的博文

Cordova android SSL issue

http://ivancevich.me/articles/ignoring-invalid-ssl-certificates-on-cordova-android-ios/ Ignoring invalid SSL certificates on Cordova for Android and iOS written by  jc ivancevich When developing  mobile apps , it’s very common that we have to connect to web services or APIs which may be secure (https) but are still under development, so its  SSL  certificate is not valid  or self-signed. This would happen unless you want to spend a hundred bucks on a wildcard certificate for development environments. For cases like the mentioned above it’s useful to be able to  ignore errors generated by invalid certificates,  so we can test the app, install it on any device , etc. In order to get rid of this problem, the process changes depending on the platform we’re targeting. iOS (Objective-C / Swift / Cordova) iOS will  always complain  about invalid certificates, either in debug or release mode. To avoid thi...