If it only works in the foreground or the background, you are either:
- on an older SDK (<41) where this was a bug, or
- you’re calling
addNotificationResponseRecievedListener
too late after startup of the app. It should be called as early as possible in your app’s startup