开发者

SystemNotification Phonegap (Android)

I just recently started doing some Android app development, based on Phonegap (due to my web based background (PHP/MySQL)) and jQuery mobile. First tests are promising, but the next level is a bit too much for me.

I'm trying to integrate this plugin: https://github.com/saileshmittal/phonegap-system-notification-plugin

I have followed the readme file and my app seemed to be working fine (no notifications just yet but also no errors) but when I opened my project this morning, Eclipse showed the following errors:

  • Invalid ZIP archive: src/com/phonegap/myapp/SystemNotification.java [in myapp]
  • Invalid preference page path: XML Syntax

Next to this error, I don't quite understand how to show the system notification. I have tried the following:

navigator.SystemNotification.createStatusBarNotification('contentTitle', 'contentText', 'tickerText');

and:

navigator.systemNotification = new SystemNotification();
navigator.SystemNotification.createStatusBarNotification('contentTitle', 'contentText', 'tickerText');

Again, my background is web based. I'm familiar with PHP, MySQL, Javascript, jQuery, etc. but Java is completely 开发者_如何学JAVAnew to me. The objective to my app at this point is to show some checkboxes (loaded from an external server) and save which ever checkbox is checked. This seems to be working fine. I'm testing showing the checked ones as a system notification. Seeing I have an Android powered phone, I'm working off that right now, planning to port it to iPhone and other devices later on.

If somebody could point me in the direction of push notification for later purposes, I'd appreciate it.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜