telybot A little less ordinary.
A lot more intelligent.
Philippines Sign in Talk to us Start free
Telybot docsInstall

React Native, Flutter and Ionic

Add the Telybot chat to a React Native, Flutter or Ionic app. Each wraps the same hosted chat page, so what you train reaches customers in every app at once.

Before you start

  • Your key, from Install → Installation in your dashboard. Choose Mobile app, then your framework, and the code shown there already has your key in it.
  • React Native 0.70 or later with React 18 or later, and react-native-webview 13.3 or later; or Flutter 3.24 or later (Dart 3.5), for Android and iOS.
  • For iOS builds, a camera line in your app's Info.plist. Customers can attach a photo in the chat, and iOS closes an app without this key when someone chooses Take Photo:
<key>NSCameraUsageDescription</key>
<string>Attach a photo to your support conversation.</string>

React Native

  1. Install the package and the web view it uses:
npm install @telybot/react-native react-native-webview
cd ios && pod install

react-native-webview is a peer dependency, not a bundled one. React Native has no built-in web view, and vendoring one would fight with whatever version your app already has. In an Expo app, run npx expo install react-native-webview instead; it picks the version that matches your Expo SDK.

  1. Render the chat anywhere in your app and control it with visible:
import { useState } from 'react';
import { TelyBot } from '@telybot/react-native';

const [showChat, setShowChat] = useState(false);

<TelyBot
  clientId="tb_live_your_key_here"
  visible={showChat}
  onClose={() => setShowChat(false)}
/>
  1. Rebuild the app after installing — react-native-webview has native code, so a JS reload is not enough.

Flutter

  1. Add the package:
flutter pub add telybot
  1. Call TelyBot.init once, at app start, and TelyBot.show from your Help button:
import 'package:telybot/telybot.dart';

// Once, at app start
TelyBot.init('tb_live_your_key_here');

// From your Help button
TelyBot.show(context);

Also TelyBot.dismiss() and TelyBot.isShowing.

Everything else — a question already typed, the chat inside your own screen, your signed-in customer, a reply while the chat is closed — is in the SDK reference.

Ionic and Capacitor

Most Ionic apps should just use the website snippet. An Ionic app is already a web view, so the plain script tag works exactly as it does on a website, and it is less code than any wrapper:

<script src="https://telybot.com/widget.js"
        data-key="tb_live_your_key_here" async></script>

Put it in index.html and you are finished.

Install @telybot/capacitor only if you specifically want the chat as a separate full-screen surface rather than a bubble inside your own layout. It opens in the system's in-app browser, so add @capacitor/browser too:

npm install @telybot/capacitor @capacitor/browser
npx cap sync
import { TelyBot } from '@telybot/capacitor';

TelyBot.init('tb_live_your_key_here');   // once, at start-up
await TelyBot.open();                    // from your Help button

open() resolves false rather than throwing when it cannot open the chat, so your app can offer its own retry.

Cordova and other hybrids

Same reasoning as Ionic: it is a web view, so the script tag works. There is no separate package. It works when the app serves its pages from localhost or its own scheme, as current Cordova does; pages loaded straight from file:// are refused.

Check it works

Run your app and open the chat from your Help button. It shows your welcome message and answers as it does on your website. While your bot is in draft it does not answer; go live with Overview → Go live and it starts, with no app release.

What all of them share

  • One chat UI, so a dashboard change is live everywhere with no app release
  • Links open outside the chat, never replacing the conversation
  • No analytics and no device identifiers. React Native needs only its web view; Flutter uses only packages published by the Flutter team
  • Online only — the chat is a hosted page

The source for every package is public at github.com/telybotai/telybot-Sdks.

Next: Training your bot →