标签:
cordova plugin add org.apache.cordova.vibration
cordova plugin add https://github.com/katzer/cordova-plugin-local-notifications
cordova plugin add cordova-plugin-websocket-server
手机端代码:
后台代码处理:
var port = this.Request.Params["Port"];
var addr = this.Request.Params["Addr"];
var webSocketClient = new WebSocket(string.Format("ws://{0}:{1}",addr ,port ));
webSocketClient.open();
string message = "万恶的苹果你等着!";
webSocketClient.Send(message);
webSocketClient.close();
效果图:
我对小编确实无语了,解释得多,代码注释多,就是乱写一通
想要看详细解释
请看QQ日志:
http://user.qzone.qq.com/273237710/blog/1464765609
cordova 消息推送,告别,消息推送服务器,和 苹果推送证书
标签:
原文地址:http://www.cnblogs.com/tigerleq/p/5550141.html