android - How to receive GCM message when app is closed or in background? -


when app in foreground, gcmlistenerservice called , can performance here. if app in background? when app in background, can still receive notification notification part without data part. how can customize on receive event receive gcm message when app in background or closed??

the onmessagereceived() method not called if app in background. there other method works when app in background?

https://github.com/google/gcm/issues/63

i have same problem him. , in link there solution. when app in background, need server side make action. data part automatically saved in intent , send activity contains action in content filter.


Comments

Popular posts from this blog

ios - Memory not freeing up after popping viewcontroller using ARC -

Django REST Framework perform_create: You cannot call `.save()` after accessing `serializer.data` -

Why does Go error when trying to marshal this JSON? -