Chat/Group chat

Ask tech team
From QuickBlox Developers (API docs, code samples, SDK)
Jump to: navigation, search

Chat: group / public chat (one or multiple chat rooms)

Group chat, unlike 1:1 Chat, can't be used for private or one-to-one IM style communication between two end users but is very useful for public discussion. In your app you may have 1 group chat (effectively meaning you have 1 chat room) or have many of them (meaning there are multiple chat rooms). In case with multiple chat rooms you may allow different scenarios:

  • Link rooms to topics (discussion on specific topics - you may also allow your users to create rooms / topics and remove them if you wish)
  • Link rooms to specific objects (example: DSTV app has pre-defined QB chat rooms for each TV channel to enable discussion of the latest shows)
  • Link rooms to users (for example company divisions or game clans can chat in one room - you can also secure access to rooms by setting a password or via Users Tags)
  • Link rooms to locations (similar to topics/objects but each room has a Location property and can then be found on map / AR mode and be filtered / accessed on users current location basis - also see [location based chat])

Typical settings

Authentication: Chat history: you may wish to keep the archive of all public discussion history which is easily supported by QuickBlox. Some platforms will also require you to implement abuse and moderation mechanisms which are also supported both via API and admin panel. File attachments: typically attachments are not supported 1:1 / IM chat: in many applications you may wish to allow users start a private communication with other user Friending: QuickBlox supports friending or adding other users to favourites which you may use in your application - see also [chat: friending / favourite users lists]

Code sample

Title APIs used Description
Simple iOS Chat code sample Chat, Users The Chat sample connects and socializes your users with the chat module. Features include: Peer to Peer Chat; Group chat; Location based chat; Push notifications for offline users.


Simple Android Chat code sample Chat, Users The Chat sample connects and socializes your users with the chat module. Features include: Peer to Peer Chat; Group chat; Location based chat; Push notification for offline users.


Simple JavaScript Chat (XMPP) code sample Chat, Users The Chat code sample connects and socializes your users with the chat module. Features include: Peer to Peer Chat; Group Chat; Location-based Chat.