Reputation: 11688
Does the GCMIntentService must be named like that?
And does it has to be located in my root package?
Where does this IntentService is getting called from?
Upvotes: 1
Views: 291
Reputation: 1
IntentService gets called by broadcast receiver. Broadcast receiver helps to receiving the push notification from android system. As when the message is arrived, android operating system broadcasts an announcement and our task is to catch that announcement and we will pass this announcement to intent-service so that we can further process the received json message.
Source: http://techlovejump.com/how-to-get-data-from-gcm-google-cloud-messaging-notification-in-android/
Upvotes: 0
Reputation: 773
Does the GCMIntentService must be named like that ?
Umm, yes..? If you are using GCM helper library. Because it's all tied up with that library so I think you should pretty much follow the steps on how to use it, mister :)
Upvotes: 0
Reputation: 1012
See the documentation
This intent service will be called by the GCMBroadcastReceiver (which is provided by the GCM library), as shown in the next step. It must be a subclass of com.google.android.gcm.GCMBaseIntentService, must contain a public constructor, and should be named my_app_package.GCMIntentService (unless you use a subclass of GCMBroadcastReceiver that overrides the method used to name the service).
As said in the link, is called from GCMBroadcastReceiver
Upvotes: 5