katzer / cordova-plugin-local-notifications

Cordova Local-Notification Plugin
Apache License 2.0
2.56k stars 1.75k forks source link

not working for android phonegap 3.0 #10

Closed bastasie closed 10 years ago

bastasie commented 10 years ago

Hi Katzer,

i was trying to install the plugin but it is not working on emulator or real device the logcat says:

Uncaught ReferenceError: device is not defined at file:///android_asset/www/plugins/de.appplant.cordova.plugin.local-notifications/www/local-notification.js:32

can you please help,

Best Regards,

Basta

katzer commented 10 years ago

Hello,

I guess you haven't installed the org.apache.cordova.device plugin. I should add the plugin as a requirement.

bastasie commented 10 years ago

installing now

bastasie commented 10 years ago

ok now there is

in my config.xml file

but am getting this warning

THREAD WARNING: exec() call to LocalNotification.add blocked the main thread for 787ms. Plugin should use CordovaInterface.getThreadPool().

and the app does not get notifications

katzer commented 10 years ago

I get the same message, but only with 30ms.

Anyway, independent of the warning the notification should be visible in the notification center. I have reinstalled the plugin and it works fine.

bastasie commented 10 years ago

ok it appeared in the notification center now, Thanks a lot

katzer commented 10 years ago

Great!

It does not block the ui thread anymore (d1e0d9425f484d8ada36860883b0a7309158a3cc)