Giter Site home page Giter Site logo

drewcoin669 / cobrowseio_flutter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from robodigital/cobrowseio_flutter

0.0 0.0 0.0 132 KB

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

License: MIT License

Ruby 20.75% Objective-C 18.52% Java 44.23% Dart 16.50%

cobrowseio_flutter's Introduction

cobrowseio_flutter

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

Supported devices

  • Android
  • iOS

Getting Started

Usage

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

init

import 'package:cobrowseio_flutter/cobrowseio_flutter.dart';

    String result = await CobrowseIO.start("YOUR_LICENSE_KEY", {
        'custom_data_field': 'Test'
    });

Get a 6-digit code

After doing the init above, call:

    String code = await CobrowseIO.getCode();

Add full device remote control (Android only)

If you want to have access to the full device on android, add this to your AndroidManifest.xml file:

    <application>
        <service
            android:name="io.cobrowse.CobrowseAccessibilityService"
            android:permission="android.permission.BIND_ACCESSIBILITY_SERVICE" />
    </application>

Please note: Only add this when you need this, because this might reject your app from the Play Store. Please read more here: https://docs.cobrowse.io/sdk-features/full-device-capabilities/full-device-remote-control#configuring-full-device-remote-control

In your code, call:

    if (Platform.isAndroid) {

      // Or: Check if we have access to full remote control.
      if (!await CobrowseIO.accessibilityServiceIsRunning()) {

        // If not, open the accesibility service settings to let the user give access.
        CobrowseIO.accessibilityServiceOpenSettings();
      }

      // Or: Show the default setup screen.
      CobrowseIO.accessibilityServiceShowSetup();
    }

Plugins

Plugin Links
Cobrowse.io iOS https://github.com/cobrowseio/cobrowse-sdk-ios-binary
Cobrowse.io Android https://github.com/cobrowseio/cobrowse-sdk-android-binary

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.