For the complete documentation index, see llms.txt. This page is also available as Markdown.

Flutter

Flutter iOS and Android SDK

Installation

We recommend installing the Cobrowse.io SDK using pub.dev:

Pub Version

Add the following package to your pubspec.yaml:

...
dependencies:
  ...
  cobrowse_sdk_flutter: ^1.0.0
...

Add the following lines to your code which will register this device with the Cobrowse servers so you can connect to it. You could choose to do this on app startup, or when your users visits a support page in your application, or any other time.

import 'package:cobrowse_sdk_flutter/cobrowseio.dart';

CobrowseIO.instance.setLicense('put your license key here');
CobrowseIO.instance.start();

By default, the Flutter SDK initializes automatically on the first call to a native Dart Cobrowse API. If you don't use APIs from the Flutter SDK directly, in case if the license is configured exclusively in the native iOS and Android SDKs, your application requires the SDK to be initialized earlier. Invoke the code below during app startup, such as from your root widget.

CobrowseIO.instance.ensureInititalized();

Add your License Key

Please register an account and generate your free License Key at https://cobrowse.io/dashboard/settings.

This will associate sessions from your mobile app with your Cobrowse account.

Try it out

Once you have your app running in the iOS Simulator or on a physical device, navigate to https://cobrowse.io/dashboard to see your device listed. You can click the "Connect" button to initiate a Cobrowse session!

Requirements

  • iOS 15.0 or later

  • Android API version 24 (7.0 Nougat) or later

Last updated