The user has to allow the app to listen to all notifications manually. It can't be done automatically / from within the app and is part of the Settings app on Android.
That said, this is quite useful for services like PushBullet for forwarding your notifications etc.