使用极光推送(www
cn)向安卓手机推送消息【服务端向客户端主送推送】,C#语言在VisualStudio2010中新建网站JPushAndroid
添加引用json帮助类库Newtonsoft
config增加appkey和mastersecret,可以在极光官网www
config源码:添加类JPushV3,会弹出保存类在App_code文件夹下,确定
JpushV3代码如下:usingSystem;usingSystem
Collections
Generic;usingSystem
Linq;usingSystem
Web;usingSystem
Net;usingSystem
Text;usingSystem
IO;usingSystem
Configuration;usingSystem
Collections;/**参考文档:http://docs
cn/display/dev/Index选择里面的:服务器端API,Push-API-V3**极光推送的网站的网址是:https://www
cn/*旧版本V2http://docs
cn/display/dev/Push+API+v2*最新版本V3http://docs
cn/display/dev/Push-API-v3**其中服务端的接口以及示例代码都在这里:http://docs
cn/display/dev/Server-SDKs*///////极光推送的最新版:PUSH-API-V3///参考地址http://docs
cn/display/dev/Push-API-v3///POSThttps://api
cn/v3/push///publiccl