mirror of
https://github.com/jpush/jpush-phonegap-plugin.git
synced 2026-04-19 00:03:45 +08:00
iOS 更新到6.0.0,安卓更新到6.0.1版本。iOS SDK 换成cocoapods集成,安卓 SDK换成marven集成。插件版本改成6.0.1
This commit is contained in:
@@ -210,6 +210,16 @@
|
||||
alert(error.code)
|
||||
})
|
||||
})
|
||||
|
||||
$("#getPushStatus").click(function (event) {
|
||||
window.JPush.getPushStatus(function (result) {
|
||||
var text = "code: " + result.code + ", isStopped: " + result.isStopped;
|
||||
if (result.code !== 0) {
|
||||
text += " (isStopped 仅当 code 为 0 时有效)";
|
||||
}
|
||||
$("#pushStatusResult").html(text);
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
document.addEventListener("deviceready", onDeviceReady, false);
|
||||
@@ -287,6 +297,10 @@
|
||||
<input type="button" id="setMobileNumber" value="Set mobileNumber" />
|
||||
</div>
|
||||
|
||||
<div data-role="fieldcontain">
|
||||
<input type="button" id="getPushStatus" value="Get push status" />
|
||||
</div>
|
||||
|
||||
<div data-role="fieldcontain">
|
||||
<label id="tagsPrompt">设置 Tag 的结果:</label>
|
||||
<label id="tagsResult">null</label>
|
||||
@@ -299,6 +313,10 @@
|
||||
<label id="mobileNumberPrompt">设置手机号的结果:</label>
|
||||
<label id="mobileNumberResult">null</label>
|
||||
</div>
|
||||
<div data-role="fieldcontain">
|
||||
<label id="pushStatusPrompt">Get push status 结果 (code=0 成功, isStopped 仅当 code 为 0 时有效):</label>
|
||||
<label id="pushStatusResult">null</label>
|
||||
</div>
|
||||
<div data-role="fieldcontain">
|
||||
<label id="notificationPrompt">接受的通知内容:</label>
|
||||
<label id="notificationResult">null</label>
|
||||
|
||||
Reference in New Issue
Block a user