2013-05-07 73 views
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 
+0

你能告诉我们你的代码吗? – Raptor 2013-05-07 11:19:30

+0

已经提到了代码 – nida 2013-05-07 11:22:22

+0

请参阅http://stackoverflow.com/questions/17198707/local-notification-repeated-every-day-in-phonegap-android。让我知道如果它没有帮助 – bala 2013-07-07 16:45:43

回答