Tôi đang tạo ứng dụng android cho điện thoại. Tôi đang tạo ứng dụng này bằng trợ giúp của this tutorial. Khi tôi istalling ứng dụng này trên thiết bị chức năng onDeviceReady của nó không hoạt động. Nó chỉ hiển thị hình nón cho thiết bị. Chức năng onDeviceReady của tôi là dưới đây: -ứng dụng android phonegap chỉ hiển thị kết nối với thiết bị
onDeviceReady: function() {
app.receivedEvent('deviceready');
alert('device ready');
try {
var pushNotification = window.plugins.pushNotification;
pushNotification.register(app.successHandler, app.errorHandler,{"senderID":"41327727848","ecb":"app.onNotificationGCM"});
} catch (ex) {
alert('error: ' + ex);
}
},
Nó không cảnh báo bất cứ điều gì. Tôi không thể tìm thấy lỗi.