离子无法运行平台窗口

时间:2016-10-14 06:05:53

标签: cordova ionic2 windows-applications

D:\ mobile \ newionictwo> cordova运行Windows - - 电话 运行命令:" C:\ Program Files \ nodejs \ node.exe" D:\ mobile \ newionictwo \ hooks \ after_prepare \ 010_add_platform_class.js D:\ mobile \ newionictwo 添加到body类:platform-windows 构建项目:D:\ mobile \ newionictwo \ platforms \ windows \ CordovaApp.Windows10.jsproj         配置:调试         平台:anycpu   CordovaApp.Windows10 - > d:\手机\ newionictwo \平台\ WINDOWS \ AppPackages \ CordovaApp.Windows10_0.0.1.0_anycpu_debug_Test \ CordovaApp.Windows10_0.0.1.0_an   ycpu_debug.appx 将windows10软件包部署到设备: d:\手机\ newionictwo \平台\ WINDOWS \ AppPackages \ CordovaApp.Windows10_0.0.1.0_anycpu_debug_Test \ CordovaApp.Windows10_0.0.1.0_anycpu_debug.appx 试图删除以前安装的应用程序... 错误:无法读取属性' __ ip'未定义的

2 个答案:

答案 0 :(得分:1)

首先安装Windows Os
,然后按照以下步骤操作
您需要添加Cordova Inappbrowser才能使用它。

var ref = cordova.InAppBrowser.open('http://apache.org', '_blank', 'location=yes');


window.open('http://apache.org','_system','location=no');

在使用之前,请确保检查设备就绪状态或(对于离子)$ ionicPlatform.ready。

https://www.badpenguin.org/how-to-make-your-ionic-cordova-app-to-run-under-windows-phone-8-1-and-desktop

https://ionicframework.com/docs/v3/developer-resources/platform-setup/windows-setup.html

答案 1 :(得分:-1)

如果此命令不返回结果

"C:\Program Files (x86)\Windows Kits\10\bin\x86\WinAppDeployCmd.exe" devices

然后您需要启动IP over USB服务

net start IpOverUsbSvc