I have a didReceiveRemoteNotification handler in my App Delegate.
Even if I return a and empty code block, my app is getting a push notification and displaying it to the user when the app is running.
I want the push notification when the app is in the background, but NOT when it is running in the foreground.
I have read a dozen SO posts and the documentation on iOS8 notifications, and the the WWDC2014 video on notifications and I still can't figure out how to prevent the notification modal alert when the app is in the foreground.
If you know any way of doing this please advise me.