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.open();
await androidApp.open({ activityName: "com.android.settings.Settings" });
}
main();
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.open();
await androidApp.open({ activityName: "com.android.settings.Settings" });
}
main();
Enter your API Key in the format: Bearer <token>. Get it from https://gbox.ai
Box ID
"c9bdc193-b54b-4ddb-a035-5ac0c598d32d"
Android app package name
"com.example.myapp"
Android pkg start
Was this page helpful?