appium / appium-uiautomator2-driver

Appium driver for Android UIAutomator2
Apache License 2.0
608 stars 179 forks source link

`Unknown mobile command "backgroundApp"` since `3.5.0` #782

Closed steviewangder closed 6 months ago

steviewangder commented 6 months ago

When I use the command mobile: backgroundApp, it throws the following:

unknown command: Unknown mobile command "backgroundApp". Only shell,execEmuConsoleCommand,startLogsBroadcast,stopLogsBroadcast,changePermissions,getPermissions,performEditorAction,getDeviceTime,startScreenStreaming,stopScreenStreaming,getNotifications,listSms,pushFile,pullFile,pullFolder,deleteFile,isAppInstalled,queryAppState,activateApp,removeApp,terminateApp,installApp,clearApp,startService,stopService,startActivity,broadcast,getContexts,lock,unlock,isLocked,refreshGpsCache,startMediaProjectionRecording,isMediaProjectionRecordingRunning,stopMediaProjectionRecording,getConnectivity,setConnectivity,hideKeyboard,isKeyboardShown,deviceidle,bluetooth,nfc,setUiMode,getUiMode,injectEmulatorCameraImage,sendTrimMemory,getPerformanceData,getPerformanceDataTypes,toggleGps,isGpsEnabled,getDisplayDensity,getSystemBars,statusBar,fingerprint,sendSms,gsmCall,gsmSignal,gsmVoice,powerAc,powerCapacity,networkSpeed,sensorSet,getCurrentActivity,getCurrentPackage,dragGesture,flingGesture,doubleClickGesture,clickGesture,longClickGesture,pinchCloseGesture,pinchOpenGesture,swipeGesture,scrollGesture,scrollBackTo,scroll,viewportScreenshot,viewportRect,deepLink,acceptAlert,dismissAlert,batteryInfo,deviceInfo,openNotifications,type,replaceElementValue,getAppStrings,installMultipleApks,pressKey,screenshots,scheduleAction,getActionHistory,unscheduleAction commands are supported. This command appears to have gone away as of version 3.5.0.

Is this now deprecated? Or was it just missed?

KazuCocoa commented 6 months ago

https://github.com/appium/appium-uiautomator2-driver/pull/783 will bring it back

github-actions[bot] commented 6 months ago

:tada: This issue has been resolved in version 3.5.2 :tada:

The release is available on:

Your semantic-release bot :package::rocket: