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+)
- Access to a valid g-tateth tenant (
tenantDomainortenantId) - Backend API URL (production:
https://api.g-tateth.com)
Installation
Add the package to your Flutter app:Quick Integration
Required Configuration
baseUrl: your API host- Production:
https://api.g-tateth.com
- Production:
- One tenant identifier:
tenantDomain(recommended), ortenantId
Local Testing
For Android emulator testing:- Use backend URL:
http://10.0.2.2:3001 - Keep backend running on port
3001 - Use a valid tenant identifier from your g-tateth setup response
Production Checklist
Before shipping to clients:- Use HTTPS API URL only.
- Confirm tenant identifier is 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
tenantDomain/tenantIdvalues.
- Verify
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.