I am using PushNotificationIOS for my iOS app notifications handling. When the app is in background and I get notifications they show up in the tray. But when I open the app(either by tapping on notification or the app icon) all the notifications get cleared from the tray.
Found this link that says this happens due to setting the applicationIconBadgeNumber to 0. But I am not doing it anywhere in my app.