How to receive eventbus events when Activity is in the background
I want to get notification message using Firebase Notification service. I'm sending message from Firebase, it is ok. I want to get this notification if user run in MainActivity also I want to show pop-up using dialog. If user run other activities for example SettingActivity or ProfileActivity , notification handle anyway and user run MainActivity pop-up appear suddenly. To do this I'm using Greenbot Eventbus. When I'm inside MainActivity and notification comes It appears so it is ok. But When I'm inside another Activity notification not coming. How to handle this message until come