I'm looking to simulate screen tapping in my Capacitor app. I've been using cordova-plugin-shell, which works fine with a simple command like:
window.ShellExec.exec('uptime', function(res){console.log('exit status: ' + res.exitStatus)console.log('cmd output: ' + res.output)})
However, when I try to use other commands, I keep getting an exit status of 100 (indicating a wrong command).
The function I need to use is:
window.ShellExec.exec('input tap 500 500', function(res){console.log('exit status: ' + res.exitStatus)console.log('cmd output: ' + res.output)})
This command works on PC without requiring root access, but for some reason, it doesn't work from within my app. Could the issue be related to whitespaces in the adb command?