Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cobrowse-sdk-react-native

Package Overview
Dependencies
Maintainers
1
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cobrowse-sdk-react-native

Cobrowse SDK for React Native

  • 0.0.7
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
663
decreased by-36.98%
Maintainers
1
Weekly downloads
 
Created
Source

CobrowseIO SDK - Remote Screenshare Service

With Cobrowse.io's screen sharing technology for mobile apps you can see exactly what your customer sees on their mobile device, and provide realtime annotations to help solve customer support queries quickly.

Try it out

You can try the Cobrowse.io service for free and without signing up for an account. Just follow the installation instructions below, then head to https://cobrowse.io/trial to use the trial dashboard.

Installation

npm install --save cobrowse-sdk-react-native
react-native link

Note: For iOS you need to be using Pods to manage dependencies for react-native link to work out of the box. If you're not using pods you'll need to manually add the Frameworks for CobrowseIO, SocketIO (and it's dependencies) to your Xcode project.

Usage from Javascript

We've provided a view that will do all the session creation and management for you. All you need to do is include this somewhere in your react native view hierarchy. It's not a requirement to use this UI, continue reading to learn about creating your own interface (it's easy!).

import { CobrowseView } from 'cobrowse-sdk-react-native';

export default class App extends Component {
    render() {
        return (
            <View>
                <CobrowseView license='trial' />
            </View>
        );
    }
}

API

It's likely you'll want to customise the UI for starting or managing an active session. We've provided an API as a part of this SDK that allows you to bypass the default UI we provide and create your own:

Session Management

CobrowseIO.createSession(callback)

CobrowseIO.loadSession(code, callback)

CobrowseIO.currentSession(callback)

CobrowseIO.activateSession(callback)

CobrowseIO.endSession(callback)

CobrowseIO.addListener(event, callback)

Properties

CobrowseIO.license

Constants

CobrowseIO.SESSION_UPDATED

CobrowseIO.SESSION_ENDED

See the CobrowseView code for an example of how to use these APIs.

Add your license key

Once you've signed up for a free account at cobrowse.io, you'll be able to find your license key at https://cobrowse.io/dashboard/settings. Add this to your SDK setup:

CobrowseIO.license = "<your license key here>";

Alternatively, you can pass this as the license prop to the CobrowseView if you're using the default UI.

Requirements

  • iOS 9.0, Android API 21 or above.

Keywords

FAQs

Package last updated on 22 Feb 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc