plush

1.获取uuid

plus.device.uuid

2.跳转网页

plus.runtime.openURL(url)

3.获取声音大小

plus.device.getVolume()

4.设置系统音量,0静音,1最大

plus.device.setVolume(0.6)

5.获取设备版本号

plus.runtime.version

6.获取推送

// 个推消息的点击事件
plus.push.addEventListener("click", function(msg) {
plus.nativeUI.alert("click:" + JSON.stringify(msg));// 弹窗
}, false)
// 个推消息的透传消息的接收
plus.push.addEventListener("receive", function(msg) {
plus.nativeUI.alert("recevice:" + JSON.stringify(msg))// 弹窗
// 推送到通知栏
plus.push.createMessage(msg.content);
}, false)

7.获取cid

var pinf = plus.push.getClientInfo()

this.cid = pinf.clientid //客户端标识

原文地址:https://www.cnblogs.com/wangyue6/p/14738091.html