0
我都遵循這樣的:localnotification android phonegap for cordova 2.x+ 設備中得到什麼:這裏是我的console.log的一些結果:的PhoneGap的Android localnotification插件就什麼都不顯示
05-07 21:04:20.218: E/dalvikvm(21039): threadid=5: stuck on threadid=12, giving up
05-07 21:04:20.218: D/dalvikvm(21039): threadid=5: sending two SIGSTKFLTs to threadid=12 (tid=21062) to cause debuggerd dump
05-07 21:04:22.218: D/dalvikvm(21039): Sent, pausing to let debuggerd run
05-07 21:04:22.867: A/libc(21039): Fatal signal 16 (SIGSTKFLT) at 0x0000522f (code=-6)
這裏是html頁面的代碼和每一件事,從跟隨上述鏈接
<script type="text/javascript">
document.addEventListener("deviceready",appReady, false);
function appReady() {
window.plugins = {
LocalNotificationPlugin: cordova.require('cordova/plugin/localNotification')
};
console.log("Device ready");
alert("");
var now = new Date();
now.setSeconds(now.getSeconds() + 90);
window.plugins.LocalNotificationPlugin.add({
date :now,
message : "Phonegap - Local Notification\r\nSubtitle comes after linebreak",
ticker : "This is a sample ticker text",
repeatDaily : false,
id : 4
});
}
</script
你能告訴我們你的代碼嗎? – Raptor 2013-05-07 11:19:30
已經提到了代碼 – nida 2013-05-07 11:22:22
請參閱http://stackoverflow.com/questions/17198707/local-notification-repeated-every-day-in-phonegap-android。讓我知道如果它沒有幫助 – bala 2013-07-07 16:45:43