I start an IntentService
from MainActivity
. This service is responsible to initialize FCM data objects (nodes) which listen to any changes done on FCM (cloud). When there is any data changes, a push notification is triggered.
Now since Android O does not allow service to be kept running in background, no push notification is observed. How to solve this issue?