import GboxSDK from "gbox-sdk";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" }); const androidApp = await box.app.get("com.android.settings"); // package name await androidApp.close();}main();
Android
Close app
Forces the specified Android application to close inside the box
POST
/
boxes
/
{boxId}
/
android
/
packages
/
{packageName}
/
close
JavaScript
Copy
Ask AI
import GboxSDK from "gbox-sdk";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" }); const androidApp = await box.app.get("com.android.settings"); // package name await androidApp.close();}main();