I'm not sure because it's a long time I don't work on it, but I believe the behaviour of my app was:
App in foreground. I send a remote notification and the event Application_RemoteNotification is fired.
App not in foreground. I send a remote notification and clicking on it the app is started and the event Application_RemoteNotification is fired.
App not in foreground. I send a remote notification and starting the app (without clicking the notification) the event Application_RemoteNotification is fired again.
So in any case the event Application_RemoteNotification is fired. Do I remember wrong ?
Because actually I see in case 3 the event is not fired.
RemoteNotification event will not be raised in case #3. You shouldn't rely on the notifications to deliver important information. Your app should check for such information (from your server) when it starts.
The real problem is that when I start the app all the related notifications are cleared.
If the user don't see a notification is arrived and start the app, the information is lost.
But again sounds strange to me I didn't see this behaviour when I was developing the app. Is it correct ? Or maybe something has changed during the time (B4I or IOS update) ?
Sound strange. I remember in the past during the app developent, I was manually deleting a lot of notifications.
I didnt' had to do that if they were automatically deleted at app start.
Maybe I'm confusing, I don't know
Notifications are not cleared automatically when the user starts the app by clicking on the icon.
When the user clicks on a notification it is cleared.