發表文章

目前顯示的是 8月, 2016的文章

Cordova iOS with Failed to load webpage with error: Could not connect to the server.

This problem is caused by the transport security policy changed on iOS9. It affects the UIWebView of iOS9. New WKWebView is not affected by this problem. Check if the cordova-ios version is larger than 4.0: cordova platform version ios If cordova-ios is larher than 4.0, please use  Cordova   WKWebView   Engine   with   http   server   ( localhost ) support:  https://github.com/apache/cordova-plugins/tree/master/wkwebview-engine-localhost cordova plugin add https :// github . com / apache / cordova-plugins . git # master : wkwebview-engine-localhost Add the following tag in config.xml if using WKWebView: <feature name="CDVWKWebViewEngine"> <param name="ios-package" value="CDVWKWebViewEngine" /> </feature> <preference name="CordovaWebViewEngine" value="CDVWKWebViewEngine" /> You must specify the wkwebview server port on config.xml for ios using indexdb or localstorage (port e.g. 12344 ) rather th
Try   reinstalling  ` node-sass `  on   node   Error encountered when running npm problem:  Error : ` libsass ` bindings not found . Try reinstalling ` node - sass `? Solution: 1. Try rebuild the node-sass: npm rebuild node - sass 2. Try reinstall gulp-sass if you are using node.js 4.x: npm uninstall -- save - dev gulp - sass npm install -- save - dev gulp - sass@2