mirror of
https://github.com/jpush/jpush-phonegap-plugin.git
synced 2025-02-20 20:22:50 +08:00
Remove unused methods
This commit is contained in:
parent
a0752562b5
commit
c4e2deec06
@ -9,8 +9,8 @@
|
||||
<script type="text/javascript" src="js/jquery.mobile-1.1.1.js"></script>
|
||||
<script type="text/javascript" src="cordova.js"></script>
|
||||
<script type="text/javascript">
|
||||
var onDeviceReady = function() {
|
||||
|
||||
var onDeviceReady = function() {
|
||||
document.addEventListener("jpush.receiveRegistrationId", function (event) {
|
||||
alert("receiveRegistrationId" + JSON.stringify(event));
|
||||
$("#registrationId").html(event.registrationId);
|
||||
@ -94,13 +94,11 @@
|
||||
var initiateUI = function() {
|
||||
try {
|
||||
window.JPush.init();
|
||||
window.JPush.setDebugMode(true);
|
||||
window.setTimeout(getRegistrationID, 1000);
|
||||
|
||||
if (device.platform != "Android") {
|
||||
window.JPush.setDebugModeFromIos();
|
||||
window.JPush.setApplicationIconBadgeNumber(0);
|
||||
} else {
|
||||
window.JPush.setDebugMode(true);
|
||||
window.JPush.setStatisticsOpen(true);
|
||||
}
|
||||
} catch (exception) {
|
||||
console.log(exception);
|
||||
|
Loading…
Reference in New Issue
Block a user