Run Ionic, Cordova, Angular app on Windows 10 tablet using USB

狂风中的少年 提交于 2019-12-13 03:06:31

问题


I want to run my Ionic, Cordova, Angular app directly on Win 10 tablet using CLI commands.

In this app, there is Windows and Web platforms added.

I used ionic cordova run windows --device, but does not work even I enabled Developer mode on tablet.

When I used this command the windows local device run.

Any help to run on tablet windows 10?


回答1:


if you can connect your tablet to your destop, you can try ionic cordova run windows --list to check if your device is detected by cordova.

If your tablet is detected, you can tryionic cordova run windows --appx=uap -target=<targetName> to deploy your app to the tablet. <targetName> is retrieved by command ionic cordova run windows --list.

If your tablet is not detected, try to package your app and copy it to your tablet then run it to install. For details about package your app, please refer to Manual app packaging.




回答2:


Tabet windows 10 is one of the independent devices. This means cannot enable USB debugger even you enabled Developer mode.

However, if you want to test your app you have only one fast way.

  1. build your windows platform project.
  2. Open Visual studio and sign your app to windows app store project.
  3. uploaded to your Microsoft developer account with you app submission.

This is only the case to run you app on Tablet windows 10



来源:https://stackoverflow.com/questions/45437604/run-ionic-cordova-angular-app-on-windows-10-tablet-using-usb

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!