Skip to content

Commit 2032273

Browse files
committed
fix: add backgroundApp
1 parent 75800a5 commit 2032273

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

lib/driver.ts

+1
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,7 @@ class AndroidDriver
413413
activateApp = activateApp;
414414
queryAppState = queryAppState;
415415
isAppInstalled = isAppInstalled;
416+
mobileBackgroundApp = background;
416417

417418
mobileGetUiMode = mobileGetUiMode;
418419
mobileSetUiMode = mobileSetUiMode;

lib/execute-method-map.ts

+6-1
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,12 @@ export const executeMethodMap = {
174174
required: ['appId'],
175175
},
176176
},
177-
177+
'mobile: backgroundApp': {
178+
command: 'mobileBackgroundApp',
179+
params: {
180+
optional: ['seconds'],
181+
}
182+
},
178183
'mobile: startService': {
179184
command: 'mobileStartService',
180185
params: {

0 commit comments

Comments
 (0)