How to catch a new chat message in an app using Quickblox (outside of the ChatView)?

混江龙づ霸主 提交于 2019-12-11 05:08:05

问题


Using Quickblox it is very easy to send and receive messages when you're in the chat view. But what happens when you're not in the chat view and you receive a message? What is the best way to catch that new chat message in the app?

  • should I use notifications and rely on the appDelegate's didReceiveRemoteNotification? Or is there another way? (As I understand, remote notifications can be slower and less reliable than the chat itself).

回答1:


You are right, you can use push notifications, if you are not in the chat. Please find needed here http://quickblox.com/modules/messages/



来源:https://stackoverflow.com/questions/20466390/how-to-catch-a-new-chat-message-in-an-app-using-quickblox-outside-of-the-chatvi

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!