katzer / cordova-plugin-local-notifications

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

Notification doesn't show while application is open #111

Closed Ionas83 closed 10 years ago

Ionas83 commented 10 years ago

Hi,

the notification alert isn't shown, nor the sound is played, while the application is open. If you try and minimize the application after the supposed notification is fired you can view the notification as a clickable banner. While the application is closed or minimized it works just fine. I am using iOS 7.0.4 and phonegap build (phonegap ver.3.1.0, plugin ver.0.7.2).

On Android it works well!

Is this a bug? Am I doing something wrong?

katzer commented 10 years ago

I think thats the normal iOS behavior for local notifications, or? But there is a bug with the sound, right.

MichelReij commented 10 years ago

Is the idea that while your app is open, the sound ought to be played? If so, this will save me the trouble of creating a parallel notification system for when the app is open in the foreground. Any idea of how soon you can fix this sound issue?

Kind regards, Michel

katzer commented 10 years ago

@MichelReij,

I am planing to add support for UI LocalNotifications when the app is in foreground. But I cannot tell you a release date. See the v0.8.x TODO List.