如何使用 Quickblox(在 ChatView 之外)在应用程序中捕获新的聊天消息? [英] How to catch a new chat message in an app using Quickblox (outside of the ChatView)?

查看:61
本文介绍了如何使用 Quickblox(在 ChatView 之外)在应用程序中捕获新的聊天消息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当您处于聊天视图时,使用 Quickblox 可以非常轻松地发送和接收消息.但是当您不在聊天视图中并且收到一条消息时会发生什么?在应用中捕捉新聊天消息的最佳方式是什么?

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?

  • 我应该使用通知并依赖 appDelegate 的 didReceiveRemoteNotification 吗?或者还有其他方法吗?(据我所知,远程通知可能比聊天本身更慢且更不可靠).

推荐答案

你说得对,如果你不在聊天中,你可以使用推送通知.请在此处找到需要的http://quickblox.com/modules/messages/

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

这篇关于如何使用 Quickblox(在 ChatView 之外)在应用程序中捕获新的聊天消息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆