问题
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