I'm using local notifications in my application. On android everything works well.
I have troubles with iOS. When the application is active and notification is scheduled and sent it's immediately received (localNotificationReceived is called).
I tried to use LocalNotification.setForeground(true) and to trap the automatic call of localNotificationReceived. In this case the notification is displayed in notification area but clicking on it does not call localNotificationReceived anymore (because it was received already, probably)
Is it possible to disable automatic call of localNotificationReceived() in iOS when application is active?