cordova-cli

Cordova cli create with proxy

随声附和 提交于 2020-01-15 18:46:03
问题 I want to run cordova create hello com.example.hello HelloWorld but all I get is the base folder structure and the error: connect ETimedOut. I have set the proxy for node.js and PhoneGap projects get setup fine. Cordova cli is setup fine so far (can find it in c:\Users\username\AppData\Roaming\npm) Anything I am missing? (PATH is set to ...npm) 回答1: I managed to fix it: set the urls platform.js http instead of https. installed ANT and set some environement vars: ANT_HOME c:\dev\apache-ant-1.9

How do you use the Cordova CLI to add a specific version of the Cordova framework

守給你的承諾、 提交于 2020-01-13 02:50:32
问题 Cordova provides a CLI for instantiating and building a Cordova framework. For example you can type: cordova create ... to create the directory structure for building a Cordova app. You can also type: cordova platform add android cordova plugin add ... cordova build android to add the files for an android project, add plugins and build it. These commands however seem to add the latest version of Cordova itself currently cordova3.4.0. What if you wanted to build with an earlier, post 3.0,

cordova script src takes relative path rather absolute

让人想犯罪 __ 提交于 2019-12-25 03:27:33
问题 I am building a hybrid app out of cordova . my folder structure looks like www bower_components components fonts scripts styles images index.html When i build the project using cordova ( cordova build ) and when i run cordova serve the javascripts files are served from root path Javascript takes from relative path whereas the css are loaded perfectly Please help me in solving this is issue. but this is not problem when i run demo project from cordova . this is index file. its in minified

Plugman framework skips Mac OS X symbolic links

社会主义新天地 提交于 2019-12-24 12:37:23
问题 I'm working on this plugin: com.ios.libgoogleadmobads, which is a helper plugin for https://github.com/appfeel/admob-google-cordova (com.admob.google cordova admob plugin) As you can see here: https://github.com/appfeel/google-iosadmobads/tree/master/src/ios/GoogleMobileAds.framework there are two symbolic lynks. When I try to install the plugin: cordova plugin add com.ios.libgoogleadmobads The links are skipped. Any workaround/solution please? UPDATE As a workaround I've added a hook to

Cordova Phonegap “Export Failed” error code 70 While building ios

淺唱寂寞╮ 提交于 2019-12-23 06:54:51
问题 I am currently using Cordova Phonegap to build an application for iOS. It was working fine, but now I'm getting an error when I'm running cordova build ios in the terminal. I'm getting the following error: ** EXPORT FAILED ** Error: Error code 70 for command: xcodebuild with args: -exportArchive,-archivePath,RoastBot.xcarchive,-exportOptionsPlist,/Users/JarrodMorgan/Desktop/RoastBot/platforms/ios/exportOptions.plist,-exportPath,/Users/JarrodMorgan/Desktop/RoastBot/platforms/ios/build/device

What is the purpose of fetch.json file inside cordova plugins folder?

爷,独闯天下 提交于 2019-12-18 14:11:30
问题 File fetch.json created inside plugins folder after cordova plugin add executed first time. This file also modified each time I add/remove plugins. What purpose of this file exactly? What tools use this file, when and why? Is there a way to restore plugins using fetch.json (try not to place plugins into repositiory)? Where can I find some docs about content of this file? Content of fetch.json: { "com.phonegap.plugins.PushPlugin": { "source": { "type": "git", "url": "https://github.com

Html5Mode - refreshing the angularjs page issue

假装没事ソ 提交于 2019-12-18 09:47:50
问题 I am working on an angularJS app, which has URLs in the format (in dev) - http://localhost:6001/#/home/index http://localhost:6001/#/content/index As this app, will also be available on desktop browser, I wanted the URLs to be without '#', so I added this in my app's config section - $locationProvider.html5Mode(true); Which works fine and URLs don't show '#'. But there is a problem now. On refreshing a particular page in browser, now I get this error - Cannot GET /home/index Are there any

CLI build Config.xml phonegap 3.3.0 ignores name and description

戏子无情 提交于 2019-12-12 13:16:47
问题 In the config file that is the blue print for all platforms, i Have added this: <name>My app name</name> <description> My app description. </description> <author email="my email" href="my url"> Same name </author> But after running phonegap run android In the config.xml in the folder platforms/android/res/xml it gives: on top of the file: <name>Hello Cordova</name> <description> A sample Apache Cordova application that responds to the deviceready event. </description> than the feature list

cordova phonegap - How to use android API level 21

半世苍凉 提交于 2019-12-11 14:48:31
问题 Hey I forked the push notification plugin (https://github.com/alexislg2/PushPlugin) and added it to my project. The project won't compile with cordova build because I have a error: cannot find symbol error. The reason is that I use in the plugin Notification.setCategory() method which is Android SDK 21. How to force cordova to compile using API level 21? I installed the android 21 sdk build tools + I set <preference name="android-targetSdkVersion" value="21" /> in my config.xml But cordova

How to configure node.js routes in a cordova app

元气小坏坏 提交于 2019-12-11 08:32:55
问题 I am working on an angular/cordova app, wherein after removing # from Url and refreshing, the pages are not getting fetched and I keep getting error like - Cannot GET /home/index How can I configure node.js server to return index.html for any unmatched route? 回答1: With express it should be quite simple: app.get('/foo', function (req, res) { res.render('foo'); }); app.get('/:bar', _checkAuth, function (req, res) { res.render(req.params.bar); }); app.get('*', function (req, res) { res.render(