cobrowseio_flutter 1.0.5 copy "cobrowseio_flutter: ^1.0.5" to clipboard
cobrowseio_flutter: ^1.0.5 copied to clipboard

A Flutter plugin to make use of cobrowse.io. View your app running remotely on customer devices. Guide the user, or take remote control.

example/lib/main.dart

import 'dart:io' show Platform;

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

void main() => runApp(MyApp());

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  void initState() {
    super.initState();

    initCobrowse();
  }

  void initCobrowse() async {
    // Init Cobrowse, pass licensekey and eventually custom data.
    await CobrowseIO.start("fX-geVPHMILBIg", {'username': 'Test'});

    // Retrieve a 6-digit code.
    print(await CobrowseIO.getCode());

    // Enable full access control on Android.
    if (Platform.isAndroid) {
      if (!await CobrowseIO.accessibilityServiceIsRunning()) {
        CobrowseIO.accessibilityServiceOpenSettings();
      }

      CobrowseIO.accessibilityServiceShowSetup();
    }
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
          appBar: AppBar(
            title: Text('Co-browse.io Example'),
          ),
          body: Center(
              child: Text(
                  "First setup the correct license key, then find this device in your cobrowse.io dashboard to create a session.",
                  textAlign: TextAlign.center))),
    );
  }
}
1
likes
110
pub points
63%
popularity

Publisher

verified publisherrobodigital.nl

A Flutter plugin to make use of cobrowse.io. View your app running remotely on customer devices. Guide the user, or take remote control.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on cobrowseio_flutter