In the notifications settings/preferences, on a per-app basis, you can set whether notifications are displayed to allow banners, badges, and sounds. And you can turn on/off whether the notification posts to the lock screen, or stay in the notification center (swipe down on iOS, click the clock in the menu bar on OSX)