Ionic

Build any chat use case into your Ionic app

Quickly embed a customizable chat experience into your Ionic app using the best chat APIs, feature-rich SDKs, and a highly customizable pre-built UI.
Hello, Magnus. Just a reminder, your dissertation deadline is this week. How are you coming along?
1m
Hi! I'm almost done, just finalizing edits and checking my citations.Just now
Great to hear! Anything you're worried about?
Just now
Just aiming to meet all the guidelines. I'll finish on time, I'm confident of that.Just now
If you need a review or have questions, let me know. Be sure to submit by the deadline.
Just now
Will do. Thanks for the support!Just now
Say something...
Ionic integration

Connect users with a fully customizable chat using our real-time messaging infrastructure that works great with Ionic.

Drop-in chat UI

Ship faster by using pre-built components that are highly customizable. Get up and running in just 10 minutes.

Fully-featured

All the essential messaging features you need. Replies, mentions, typing indicators, link previews, emojis, and more.

TalkJS works great with Ionic

Most of the TalkJS code will live in the frontend, so it seamlessly integrates with Ionic. You can ship faster, simplify your stack, and save on development costs by using the best chat APIs and a feature-rich JavaScript SDK. It's all you need to add a fully-featured chat into your Ionic app in minutes instead of months.

1<script>
2 // Synchronize user data and set up
3 const currentUser = new Talk.User({
4 id: 79302, // your own user id
5 name: "Nina Caldwell",
6 email: "nina.caldwell@example.com" // for offline email fallback
7 });
8 const session = new Talk.Session({
9 appId: "9352938974", // your TalkJS account id
10 me: currentUser // make Nina the active user
11 });
12 const other = new Talk.User({
13 id: "654321",
14 name: "Sebastian",
15 email: "sebastian@example.com"
16 });
17
18 // Add users to the conversation
19 const conversation = session.getOrCreateConversation(Talk.oneOnOneId(me, other));
20 conversation.setParticipant(me);
21 conversation.setParticipant(other);
22
23 // All set! Let's turn a div into Nina's messaging center
24 const inbox = session.createInbox();
25 inbox.mount(document.getElementById("chat-container"));
26</script>
We were able to offload all messaging to TalkJS — hugely simplifying our development of an otherwise complex stack.
Deryk Wenaus avatar
Deryk Wenaus
CTO, Retreat Guru

Ready-made chat UI you can customize

The chat UI comes with three different layouts — that are highly customizable — which you can mix and match to suit your needs. You have complete control over the styling, the layout, and document structure of the chat messages and the possibility to show metadata.

Inbox
The TalkJS Inbox shows the chat history on the left, selected conversation on the right. It's designed to act as the messaging center of your app, usually living on its own page.
Read the Inbox docs
Chatbox
The Chatbox is just the right half of the Inbox UI mode. It takes up less space and is designed to be embedded in your app near an order confirmation, a booking, or user profile.
Read the Chatbox docs
Popup
You can also show a conversation in a React popup that only shows up when the user clicks a button somewhere. When shown, the popup is positioned on the bottom right of your page.
Read the Popup docs