Closed vepak closed 10 years ago
I confirm! I too have the same problem!
I just started using this plugin a week or so ago, so I don't have a lot of experience. But I was confused by the same thing starting out. I could not get the immediate notification to fire as you're trying to do here and as is described in the README. However, if you set it to fire sometime in the future (just use a minute from now to start), then back out of the app using the home button (shift-cmd-h in the iOS simulator), you should see a notification pop up within the minute. Maybe it only works in the background?
Yes @c-rahtz , you're correct. I could see the notification once I excited the app.
Appreciate your help. May be something @katzer want to take a look at it.
Great plugin & great support.
wondering how to show the notification in foreground, like alarm alert.
I followed your advice and it works. Thank you
Hello,
the fact that the notification is not displayed while in foreground is controlled by the OS. The notification only pops up if the app is not running (or in background). But she will be listed in the notification center in each case.
It may be possible for future releases (v0.8) to add support for toasts or alarms while running in foreground.
I'm trying to get the plugin work in cordova 3.3.0 iOS. I installed plugin using cmd cordova plugin add de.appplant.cordova.plugin.local-notification
and built the project cordova build ios
and then trying to execute window.plugin.notification.local.add({ message: 'Great app!' });
But nothing show up. Do in need to initialize anything or missing anything.
Appreciate your time.
Thanks, Vamsi.