mirror of
https://github.com/jpush/jpush-phonegap-plugin.git
synced 2025-04-29 14:00:10 +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="js/jquery.mobile-1.1.1.js"></script>
|
||||||
<script type="text/javascript" src="cordova.js"></script>
|
<script type="text/javascript" src="cordova.js"></script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var onDeviceReady = function() {
|
|
||||||
|
|
||||||
|
var onDeviceReady = function() {
|
||||||
document.addEventListener("jpush.receiveRegistrationId", function (event) {
|
document.addEventListener("jpush.receiveRegistrationId", function (event) {
|
||||||
alert("receiveRegistrationId" + JSON.stringify(event));
|
alert("receiveRegistrationId" + JSON.stringify(event));
|
||||||
$("#registrationId").html(event.registrationId);
|
$("#registrationId").html(event.registrationId);
|
||||||
@ -94,13 +94,11 @@
|
|||||||
var initiateUI = function() {
|
var initiateUI = function() {
|
||||||
try {
|
try {
|
||||||
window.JPush.init();
|
window.JPush.init();
|
||||||
window.setTimeout(getRegistrationID, 1000);
|
|
||||||
if (device.platform != "Android") {
|
|
||||||
window.JPush.setDebugModeFromIos();
|
|
||||||
window.JPush.setApplicationIconBadgeNumber(0);
|
|
||||||
} else {
|
|
||||||
window.JPush.setDebugMode(true);
|
window.JPush.setDebugMode(true);
|
||||||
window.JPush.setStatisticsOpen(true);
|
window.setTimeout(getRegistrationID, 1000);
|
||||||
|
|
||||||
|
if (device.platform != "Android") {
|
||||||
|
window.JPush.setApplicationIconBadgeNumber(0);
|
||||||
}
|
}
|
||||||
} catch (exception) {
|
} catch (exception) {
|
||||||
console.log(exception);
|
console.log(exception);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user