phonegap android localnotification插件什么都不显示 [英] phonegap android localnotification plugin display nothing
本文介绍了phonegap android localnotification插件什么都不显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已遵循以下步骤:针对cordova 2.x +的localnotification android phonegap 在设备中什么也没得到:这是我的console.log的一些结果:
I have followed this: localnotification android phonegap for cordova 2.x+ getting nothing in device: here is some results of my console.log:
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页面的代码,所有内容都来自上述链接
Here is the code of html page and every thing follow from the above mentioned link
<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
推荐答案
查看 https://github.com/Wizcorp/phonegap-plugin-localNotifications
它是定期维护的,并由Wizcorp在生产游戏中使用.
It is regularly maintained and is used in production games by Wizcorp.
这篇关于phonegap android localnotification插件什么都不显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文