The official Flutter SDK for integrating g-tateth chat into Android and iOS apps.Documentation Index
Fetch the complete documentation index at: https://docs.g-tateth.com/llms.txt
Use this file to discover all available pages before exploring further.
Overview
With the Flutter SDK, clients can:- Initialize a chat session from mobile
- Send and receive messages in real time
- Display a native chat UI component
- Reuse existing widget/chat backend APIs
Prerequisites
- Flutter 3.19+ (Dart 3.3+)
- A
tenantDomainprovided by G-tateth for your integration - Backend API URL (production:
https://api.g-tateth.com)
Note: G-tateth will provide your tenantDomain during integration setup.
Installation
Add the package to your Flutter app:Quick Integration
Use thetenantDomain provided by g-tateth during onboarding. g-tateth will share this value with your team.
Full Integration Example
Use this pattern to open chat from your app and allow in-app customization:In-app Customization
By default,GtatethChatWidget fetches tenant widget settings from /api/widget/settings and applies them at runtime.
That lets you change mobile widget appearance/behavior from tenant settings without shipping a new app build.
Use ChatWidgetSettings to configure tenant-facing widget labels and UI behavior in-app:
- Appearance: header/background/bubble/border/input colors
- Behavior: title, empty state, input hint, indicators, offline message, message width
- Chatbot: chatbot toggle, assistant name, greeting message, and chatbot online status
- Greeting priority:
chatbot.greetingMessagethenbehavior.greetingMessage behavior.showTypingIndicatorcontrols typing emit behavioravailability.showAvailabilityStatuscontrols connection indicator visibilitychatbot.advanced.chatbotShowsOnlinecan keep status online while chatbot is active- Chat UI now shows
Agent is typing...and chatbot typing states in mobile
- In-app mobile customizations are persisted locally by default
- Saved customizations are restored after refresh/restart
- Load priority: local defaults -> tenant settings -> persisted in-app customization
- When
useTenantSettingsis true, tenanttitleand chatbot assistant/greeting stay authoritative
Required Configuration
baseUrl: your API host- Production:
https://api.g-tateth.com
- Production:
tenantDomain: provided by G-tateth during onboarding
Local Testing
For Android emulator testing:- Use backend URL:
http://10.0.2.2:3001 - Keep backend running on port
3001 - Use the
tenantDomainprovided by G-tateth
Production Checklist
Before shipping to clients:- Use HTTPS API URL only.
- Confirm the provided
tenantDomainis correct. - Verify chatbot and handoff behavior per tenant settings.
- Test reconnect behavior on poor mobile networks.
- Ensure support/ops teams can monitor chat events and errors.
Troubleshooting
Tenant not found- Verify the
tenantDomainvalue provided by G-tateth.
- Verify the
Failed to fetch- Confirm backend URL is reachable from device/emulator.
- Emulator must use
10.0.2.2for localhost backend.
- No bot response
- Check tenant chatbot settings and plan/feature access.
- Confirm backend logs for chatbot gating and realtime emissions.