intercom_flutter 9.2.0 copy "intercom_flutter: ^9.2.0" to clipboard
intercom_flutter: ^9.2.0 copied to clipboard

Flutter plugin for Intercom integration. Provides in-app messaging and help-center Intercom services

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:intercom_flutter/intercom_flutter.dart';

void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  // TODO: make sure to add keys from your Intercom workspace.
  await Intercom.instance.initialize(
    'appId',
    androidApiKey: 'androidApiKey',
    iosApiKey: 'iosApiKey',
  );
  // TODO: don't forget to set up the custom application class on Android side.
  runApp(SampleApp());
}

class SampleApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Intercom example app'),
        ),
        body: Center(
          child: TextButton(
            onPressed: () {
              // NOTE:
              // Messenger will load the messages only if the user is registered
              // in Intercom.
              // Either identified or unidentified.
              // So make sure to login the user in Intercom first before opening
              // the intercom messenger.
              // Otherwise messenger will not load.
              Intercom.instance.displayMessenger();
            },
            child: Text('Show messenger'),
          ),
        ),
      ),
    );
  }
}
143
likes
160
pub points
98%
popularity

Publisher

verified publisherintercom.deepakdroid.xyz

Flutter plugin for Intercom integration. Provides in-app messaging and help-center Intercom services

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, flutter_web_plugins, intercom_flutter_platform_interface, intercom_flutter_web

More

Packages that depend on intercom_flutter