How to customize notification display and tone when using GCMReceiver and GcmListenerService

后端 未结 2 566
北海茫月
北海茫月 2020-12-19 13:56

I have followed instructions to set up an Android GCM client app here, and have a problem specifically with this excerpt:

For existing apps that exten

2条回答
  •  离开以前
    2020-12-19 14:25

    The option that I can only see possible is thru the payload (as you indicated) which are handled by both XMPP and HTTP connection servers. I'm not sure why it seems wrong on your part, since the server will define the sound data in the payload and the client will just need the file present on the respective asset folder it should be.

    Display customization can also be done thru the notification payload (though its limited to color and icon)

提交回复
热议问题