Articles of cordova

混合应用程序可以针对Windows平板电脑/表面

我们为Android手机开发了一个混合应用程序。 我们希望它与Windows兼容,因此我们使用Adobe PhoneGap Build从现有的源代码生成.XAP包。 我们确信,这个.XAP软件包可以使用部署工具/发布到Windows Phone商店轻松部署到Windows Mobile Phone中。 但如何定位Windows平板电脑/地面手机。 他们是否使用相同的包(.XAP)types? 我的同事build议,我们需要从头开发一个本地应用程序,以目标Windows平板电脑/表面,甚至兼容Windows8个人电脑/笔记本电脑。 这打破了混合的整个理念。 但我的观点是,为什么我们不能使用相同的源代码(在HTML5,CSS3,JS,JQuery,JQUeryMobile)来生成兼容Windows Tablets / Surface的包。 如果这样怎么样? 如果不是为什么? 另外让我知道,如果Windows平板电脑和Windows Phone平台是完全不同的。

电话差距 cmd:命令失败,退出代码为8

我是“phonegap”的新手我已经在我的Win7 x64个人电脑上安装了所有必要的工具,以便能够运行我的第一个android应用程序(在http://phonegap.com/install安装之后) – >每一个帮助非常感谢,提前感谢! 遵循命令之后 npm install -g phonegap phonegap创buildmyapp phonegapbuild立本地android 我一直在cdm中收到以下错误消息: E:\Android development\nodejs\mmiapp>phonegap local build android [phonegap] adding the Android platform… C:\Users\Reen\.cordova\lib\android\cordova\3.5.0\bin\node_modules\q\q.js:126 throw e; ^ Error: ERROR : executing command 'ant', make sure you have ant installed and add ed to your path. at C:\Users\Reen\.cordova\lib\android\cordova\3.5.0\bin\lib\check_reqs.js:47:27 at ChildProcess.exithandler (child_process.js:651:7) at ChildProcess.emit (events.js:98:17) at maybeClose (child_process.js:755:16) […]

用Cordova在Windows应用程序中打开一个网页?

我试图使用这个解决scheme来打开网页里面的可能Cordova Windows应用程序通过更改: <content src="index.html" /> 同 <content src="http://http://192.168.8.33:8080/war/index.htm" /> 但由于某种原因,我在汇编中遇到这个大错误: Platform : anycpu C:\windowsProject\test1\platforms\windows\build\windows80\debug\anycpu\AppxMani fest.xml(24,41): error APPX1404: File content does not conform to specified sch ema. The 'StartPage' attribute is invalid – The value 'www/http://192.168.8.33: 8080/war/index.html' is invalid according to its datatype 'http://schema s.microsoft.com/appx/2010/manifest:ST_FileName' – The Pattern constraint failed . [C:\windowsProject\test1\platforms\windows\CordovaApp.Windows80.jsproj] 我使用的是Cordova 4.3.0,我的目标平台是Windows

MPNS消息不起作用

我使用cordova(Phonegap)制作了一个windows phone 8.1应用程序。 我正在使用PushPlugin进行通知。 它适用于Android和iOS的完美,但对于Windows Phone 8.1不起作用。 其实它是随机的。 我正在使用Toast通知窗口。 所以有时我会收到吐司通知。 有时候我没有。 我正在成功生成频道并在MPNS注册。 通知URI类似于下面给出的。 http://s.notify.live.net/u/1/sin/H2QAAAAVvWfCaYxRXqTAKuMvkQn…….. 案例一 服务器端的实现是在PHP中。 当我在Windows设备上收到Toast Notification时,服务器上的响应是 [HTTP/1.1 200 OK Cache-Control: private Server: Microsoft-IIS/8.0 X-Server: RD000D3A107A1E X-DeviceConnectionStatus: Connected X-NotificationStatus: Received X-SubscriptionStatus: Active X-MessageID: 00000000-0000-0000-0000-000000000000 X-AspNet-Version: 4.0.30319 Date: Wed, 06 May 2015 11:00:45 GMT Content-Length: 0] 案例二 但是,当我没有收到吐司通知,在服务器的响应是 Blank Array( [] ) 我想知道为什么响应是空白数组而不是如上所述的任何适当的响应。 我已经尝试了两种情况与Wifi和数据连接,但结果是一样的。

在cordova windos应用程序中使用触摸事件

我正在创build一个使用cordova的应用程序,它严重依赖touchstart和touchmove等触摸事件。 这些事件在Android和iOS版本中工作正常,但是它们并没有在Windows版本中被解雇。 相反,浏览器试图在触摸上滚动页面(注意:我在touchstart上调用event.preventDefault函数,但事件甚至没有触发)。 在这种情况下,边缘浏览器与cordova应用程序具有相同的行为。 在边缘是一个选项,当你导航到about:flags被称为enable touch events当这个标志被设置为Always on或Only on when a touchscreen is detected ,应用程序完美工作。 我想知道在cordova应用程序中设置这个标志是否可行。

对于Windows 8.1 Cordova Metro应用程序,使用Edge Webview而不是IE Webview

有没有什么办法,我们可以使用边缘webview而不是IE浏览器的Windows 8.1应用程序的webview? 据我所知,Windows 8.1应用程序也在Windows 10上运行,但我只是想更新web视图。 只有Windows 10应用程序支持边缘web视图。 如果我把我的应用程序从8.1迁移到10(通用),那么很多东西都需要改变,这会带来很多复杂性,并在我的应用程序中消耗更多时间。 所以,我想坚持与Windows 8.1,只是更新的Web视图边缘。 可能吗? 我尝试了<meta http-equiv="X-UA-Compatible" content="IE=Edge" />但它仍然在IE浏览器上呈现(控制台中的导航器命令) 感谢您的帮助。

没有连接的互联网视觉工作室Apache科多瓦应用程序

我在Visual Studio中构build了apache cordova应用程序,并在Windows模拟器中运行它。 它是在模拟器打开,但是当我使用应用程序,它显示互联网连接错误的应用程序。 我检查了系统中的所有设置,模拟器和应用程序的许可都很好。 但仍然显示互联网连接错误,我无法find任何其他确切的错误。 互联网工作的模拟器以外的应用程序。 我尝试了很多方法,我也做了超v设置。 需要什么设置,请build议我。

在safari中的cordova mac打开url

我使用下面的https://github.com/apache/incubator-cordova-mac来制作mac os x apps,但是看起来我无法得到_blank链接来打开。 如果有人知道这将是伟大的。 答案1) – 没有工作 我把它放在WebViewDelegate.m中 – UIWebViewNavigationType <是错误 – (BOOL) webView:(WebView*)theWebView shouldStartLoadWithRequest:(NSURLRequest*)request navigationType:(UIWebViewNavigationType)navigationType { //return [self.viewController webView:theWebView shouldStartLoadWithRequest:request navigationType:navigationType]; NSURL *url = [request URL]; // Intercept the external http requests and forward to Safari.app // Otherwise forward to the PhoneGap WebView if ([[url scheme] isEqualToString:@"http"] || [[url scheme] isEqualToString:@"https"] || [[url […]

msbuild在windows phone 8 phonegap CLI中失败

我已经成功地为Android创build应用程序。 当我要添加平台的Windows 8它显示如下错误 $cordova platform add wp8 checking wp8 requirements… Error: Error while checking requirements: The command `msbuild` failed. Make sure you have the latest Windows Phone SDKs installed, AND have the latest .NET framework added to your path (ie C:\Windows\Microsoft.NET\Framework\v4.0.30319). 请帮帮我… :( 提前致谢…

在Cordova的Windows 8应用程序的LocalState文件夹中显示PDF文件

我的应用程序下载PDF并将其存储在我的Windows 8应用程序的LocalState文件夹中。 我在应用程序中有一个链接,当用户点击它时,我想显示PDF。 我已经尝试在window.open调用中使用ms-appdata:///local/pdfs/filename.pdf显示它,并且我还尝试在cordova内使用InAppBrowser插件,但没有运气。 另外,我已经尝试了以下内容: var uri = new Windows.Foundation.Uri('ms-appdata:///local/pdfs/filename.pdf'); var file = Windows.Storage.StorageFile.getFileFromApplicationUriAsync(uri); Windows.System.Launcher.launchFileAsync(file).done(); 我知道文件存在,因为我得到一个文件的结果。 只是不知道如何让用户查看它。