1

I need to connect android/iPhone device via USB with a PC. An program written in NodeJS should be able to detect the device and get information and perform some operation on the device like reboot and reset.

Anyway, I've tried some libraries like node-usb but I'm not able to send command to the device or perform any task like that.

For iOS there's some library libimobiledevice but couldn't find any nodeJs wrapper.

Maybe I'm missing something here, any help will be appreciated.

Thanks is advance.

Rajesh Dan
  • 459
  • 7
  • 16

1 Answers1

1

Don't know for iOs, but I don't think it is possible in Android. The reason is with permissions: it would rather be a bug then a feature if someone could just plug in a USB and shutdown your device without asking.

So, maybe if you would ask permissions for access and such, maybe.

Android App with Popup is possible.

And that is with Apps, not with NodeJS, it's not native to either iOs or Android.

Community
  • 1
  • 1