Mohammed Li
Mohammed Li

Reputation: 25

Android GcmListenerService parallel?

Does the GcmListenerService process the gcm messages in parallel or sequentially? I know that normal Android services run in the main thread. But does that also apply to GcmListenerService?

Upvotes: 0

Views: 309

Answers (1)

morepork
morepork

Reputation: 983

GcmListenerService processes messages in parallel in background threads, see the note in the docs that methods are invoked asynchronously. So you are able to do blocking tasks in onMessageReceived() without worrying about blocking future messages.

Upvotes: 3

Related Questions