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

html - Styling progress bar with inline style -

java - Oracle Sql developer error: could not install some modules -

How to use autoclose brackets in Jupyter notebook? -