Tag: cordova

无法build立apk或运行到设备上

我能够build立和testingapk到我的设备由cordova run android ,现在突然它卡住了有人可以帮我解决这个问题,我等了差不多20分钟,但没有变化。 这个图像有我的离子信息和我的构build部分 我重新安装了平台,更新了android studio,npm cache clean。 但没有成功充分。

在cmd中安装离子时出错

使用cmd尝试安装离子时,我总是收到错误 在此之前我已经安装了Node JS $ npm install -g cordova ionic npm ERR! code SELF_SIGNED_CERT_IN_CHAIN npm ERR! errno SELF_SIGNED_CERT_IN_CHAIN npm ERR! request to https://registry.npmjs.org/cordova failed, reason: self signed certificate in certificate chain npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\samar_000\AppData\Roaming\npm-cache\_logs\2017-07- 23T10_58_18_779Z-debug.log

坚持cordova平台文件夹更快的CI构build

Ionic / Cordova项目的最佳做法是不要将platforms/ plugins/文件夹检入到SCM中,而Cordova将负责在第一个版本中引导所有必需的依赖关系。 虽然这对开发人员来说工作正常,但却显着降低了CI服务器的构build速度。 例如,我们运行一个MacMini作为构build奴隶, cordova prepare需要花费大约10分钟的时间完成(对于两个平台),总共需要12分钟的时间(其他大部分时间花费在npm install )。 现在,我已经试图简单地caching构build作业之间的platforms/ plugins/文件夹。 但是,由于我需要dynamic更新bundleId /包名称和应用程序名称以区分不同环境的构build,因此会导致Cordova无法dynamic更新此数据的错误。 我想知道是否有人遇到过类似的问题,并会对你解决问题的方式感兴趣。

如何在我的网站使用与cordova节点js?

我有一个网站托pipe在实时服务器上,我在现场服务器中安装了Node.js和Cordova 。 我想获得一些硬件信息,使用cordova我决定使用这个插件来获得一些用户信息。现在我的疑问是,我可以在我的网站使用这个cordova (因为经过一些研究,我知道它用于制作一个移动应用程序)? 如果是的话意味着如何自动启动节点服务器? 一些SOpost说,首先创build一个网站,然后什么types的function需要添加适当的function,在您的网站使用一些插件。这就是我需要它是如何可能的?节点服务器如何运行?

离子错误:找不到模块'dezalgo'

我正在尝试添加ios平台到我的项目,所以我可以在XCode中build立它。 我跑了下面的命令:ionic cordova platform add ios 这是我得到的错误: ionic cordova platform add ios > cordova platform add ios –save module.js:544 throw err; ^ Error: Cannot find module 'dezalgo' at Function.Module._resolveFilename (module.js:542:15) at Function.Module._load (module.js:472:25) at Module.require (module.js:585:17) at require (internal/module.js:11:18) at Object.<anonymous> (/Users/chando/Documents/GIT/testproject/node_modules/cordova-lib/node_modules/npm/lib/utils/correct-mkdir.js:2:15) at Module._compile (module.js:641:30) at Object.Module._extensions..js (module.js:652:10) at Module.load (module.js:560:32) at tryModuleLoad (module.js:503:12) at […]

什么是node.js服务器端代码来处理来自phonegap ft.upload传入的请求?

我已经部分开发了一个混合Android应用程序使用node.js为我的服务器和JavaScript,jquery,phonegap(现在称为cordova1.6.0)的应用程序。 部分应用程序允许用户使用智能手机相机拍照,然后将其上传到服务器。 我在应用程序上传图片的代码是… var imageURI = document.getElementById('display_image').src; if (!imageURI) { // || (self.elem.image_play.style.display == "none")) { console.log('no image uri defined – ' + JSON.stringify(imageURI)); //document.getElementById('camera_status').innerHTML = "Take picture or select picture from library first."; return; } // Verify server has been entered server = 'http://192.168.1.3:8180/newimage/'; if (server) { console.log("starting upload"); // Specify transfer options var […]

在发送jsonp请求phonegap时捕获响应

我写的应用程序通过手机服务器端我写nodejs exports.login = function(request, response) { var keys = Object.keys(request.query); request.body= JSON.parse(keys[1]); Accounts.findOne({ name : request.body.name }, function(err, docs) { if (!docs) { response.json('{"error": "user-not-found"}'); } else { console.log("docs: ", docs); Accounts.validatePassword(request.body.password, docs['hashedPass'], docs['salt'], function(error, res) { if (error) { response.json(error); } if (res) { generateToken(request.body.name, request.body.device, function(res) { if (res) { response.json('{"token": "' + […]

cordovacli使用代理创build

我想跑 cordova create hello com.example.hello HelloWorld 但我得到的是基础文件夹结构和错误:连接ETimedOut。 我已经设置了node.js和PhoneGap项目的代理安装正常。 到目前为止,Cordova cli安装的很好(可以在c:\ Users \ username \ AppData \ Roaming \ npm中find它) 我错过了什么? (PATH设置为… npm)

为cordova添加android平台时出错

D:\Shabbir\AndroidTest>cordova platform add android Creating android project… C:\Documents and Settings\avaya11\Application Data\npm\node_modules\cordova\node _modules\q\q.js:126 throw e; ^ Error: An error occured during creation of android sub-project. C:\Documents and Settings\avaya11\.cordova\lib\android\cordova\3.3.0\bin\node_mo dules\q\q.js:126 throw e; ^ Error: An error occurred while listing Android targets at C:\Documents and Settings\avaya11\.cordova\lib\android\cordova\3.3.0\bin\ lib\check_reqs.js:87:29 at _rejected (C:\Documents and Settings\avaya11\.cordova\lib\android\cordova \3.3.0\bin\node_modules\q\q.js:808:24) at C:\Documents and Settings\avaya11\.cordova\lib\android\cordova\3.3.0\bin\ node_modules\q\q.js:834:30 […]

如何更新sencha的cordova版本

试图build立一个sencha项目: sencha app refresh sencha app build package 它通常build立在另一台现在不可用的机器上。 我可以看到cordova.js中已经改变的东西cordova.js :from: CORDOVA_JS_BUILD_LABEL = 3.3.0到: CORDOVA_JS_BUILD_LABEL = 3.0.0-0-ge670de9 所以这个新的生成机器是在一个过时的版本的cordova看起来。 所以我运行npm install cordova -g来更新它。 但它build立相同。 什么需要更新,我该怎么做?