tambi_flutter_sdk 0.0.1 copy "tambi_flutter_sdk: ^0.0.1" to clipboard
tambi_flutter_sdk: ^0.0.1 copied to clipboard

Tambi is a modern messaging software for sales and customer engagement teams.

💬 Flutter TambiSDK

A Flutter plugin for integrating TambiSDK in your mobile app.

Usage #

To use this plugin, add tambi_sdk as a dependency in your pubspec.yaml file.

import 'package:tambi_flutter_sdk/tambi_flutter_sdk.dart';

Initialize the Tambi sdk with appKey which you could get from here: Where to find App Key

It has following [TambiSDKConfig] properties:

await Tambi.init(
  appKey: 'YOUR_APP_KEY_HERE',
  );

Update the user info by setting by creating a TambichatUser object

 TambichatUser user = TambichatUser();
 user.setEmail('aaron@talksay.io');
 user.setFirstName("Aaron");
 user.setLastName("Talksay");
 user.setPhone("+234800000000");
 user.setLocation("Lagos, Nigeria");

 Tambi.setUser(user);

Open the support dialog that opens the chat screen

await Tambi.supportDialog(context);

Reset user data at logout or when deemed appropriate based on user action in the app.

await Tambi.resetUser();

Example #

Find the example wiring in the TambiSDK example application.

API details #

See the tambi_sdk.dart for more API details

Issues and feedback #

Please file issues to send feedback or report a bug. Thank you!