For GcmListenerService is onMessageReceived background?

Viewed 1202

When I extend GcmListenerService, is onMessageReceived running in a background process or is it on the UI thread? I need to know if I may make network calls inside the method body without using an asyncTask or such.

I looked at the source code and sure enough it is a vanilla service with no handlers. But there is a bit of code about THREAD_POOL_EXECUTOR and a number of apparently obfuscated stuff.

3 Answers
Related