This is a beta feature currently in testing phase. Please note that real device availability may be limited, and some functionalities might experience occasional instability. We appreciate your feedback to help us improve this feature.

Real Device provides real-time remote access to physical Android devices hosted in the cloud, enabling you to directly control and interact with actual hardware devices through your browser or GBox SDK. This feature is perfect for testing apps on real device conditions, accessing device-specific features, and performing authentic mobile testing scenarios.

Key Features

  • Real Hardware: Access to actual physical Android devices, not emulators
  • Remote Control: Full touch, swipe, and gesture support
  • Live View: Real-time screen streaming with minimal latency
  • App Testing: Install and test your applications in genuine device environments

Usage

import GboxSDK from "gbox-sdk";
import * as dotenv from "dotenv";

dotenv.config();

const gboxSDK = new GboxSDK({
  apiKey: process.env["GBOX_API_KEY"], // This is the default and can be omitted
});

async function main() {
  const box = await gboxSDK.create({
    type: "android",
    config: {
      deviceType: "physical",
    },
  });

  console.log(`Android box created: ${box.data.id}`);

  const liveView = await box.liveView();

  console.log(`Live view URL: ${liveView.data.url}`);
}

main();