I am trying to create an android app which can receive push notifications. I have already got my device registered and obtained the GCM id.
However I am confused if I need to implement a service to listen to the push notifications ? I am aware that I need to implement a broadcast receiver to process the push notification. However I am not sure if service is required in my application.
My aim is to create an application which I can start/stop remotely. I intent to do it via push notifications.
onMessageReceived(String from, Bundle data)
. I know I have to override it. Does this mean that there is not need for a service and only a broadcast receiver will suffice ? – Riju Baral