The notification banner shows up in the background mode, but not in foreground which is normal.
I'm showing a UIAlertView
/ UIAlertController
(ios 7, ios 8) when I detect a local notification, but it would be nice to have the same notification banner that pops up on the background, when i'm using the app.
I know that some apps are using custom animation in order to do this, but I'm looking for an API that could help me generate a banner in foreground mode. Or a hint on how to make a custom animation that looks like ios default banner.
You could use some Open-source code,
try looking at the Notification views here https://github.com/cjwirth/awesome-ios-ui#notifications-and-alerts , you can choose whatever you like and display the message view instead of alert.