React Native
React Native SDK

Installation

1
npm install --save cobrowse-sdk-react-native
2
react-native link
Copied!
Note: For react-native link to work out of the box on iOS, you need to be using Pods to manage dependencies. Please also remember to run pod install after the link step. Depending on your project, you may also need use_frameworks! in your Podfile. If using Pods causes a problem for your project, you may use Carthage to manage your Cobrowse.io dependencies, or you may also add the frameworks to your project by hand. More info at iOS SDK Installation.

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.
1
import CobrowseIO from 'cobrowse-sdk-react-native';
2
3
CobrowseIO.license = "put your license key here";
4
CobrowseIO.start();
Copied!

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 9.0, Android API 19 or above.
Any questions at all? Please email us at [email protected].
Last modified 2mo ago