Android
Android Native SDK

Installation

In your app build.gradle
1
dependencies {
2
// ... other dependencies ...
3
implementation 'io.cobrowse:cobrowse-sdk-android:2.+'
4
}
Copied!
To use Cobrowse.io in your project, please add the following lines to your Application subclass.
1
package com.example;
2
3
import android.app.Application;
4
import io.cobrowse.CobrowseIO;
5
6
public class MainApplication extends Application {
7
8
@Override
9
public void onCreate() {
10
super.onCreate();
11
12
CobrowseIO.instance().license("put your license key here");
13
CobrowseIO.instance().start(this);
14
}
15
}
Copied!
Important: Make sure you do this in your custom Application subclass onCreate() to ensure devices register in your dashboard right away.
You may also start CobrowseIO in your MainActivity or other Activity if necessary. In that case, the SDK will continue to function even as new Activities are being created and destroyed.

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.io account.

Try it out

Once you have your app running in the Android emulator 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

    API version 19 (4.4 KitKat) or later
Due to OkHttp dropping support for Android 4.4 after its v3.12.x releases on December 31, 2021, support for Android 4.4 will likely be supported in 2.x releases of the Cobrowse.io Android SDK only.
Any questions at all? Please email us at [email protected].
Last modified 2mo ago