cordova-3

Get previous versions of a package in NPM

假如想象 提交于 2019-12-02 16:20:12
How do I find out all previous versions of a package using npm? In this instance, I am interested in cordova. If I execute npm install -g cordova , I will install the latest version (which is what you'd expect). If I do npm install -g cordova@3.1.0-0.1.0 then I get the specific version installed - I would like to know because I am having troubles with the latest version of a package, and would like to test which version the problem occurred in - but cannot do that if I don't know which npm package versions there have been. Mr_Spock Try: In your terminal: npm view cordova versions Output: [ '0

Cordova: CSP issue on Android when requesting data over HTTPS

狂风中的少年 提交于 2019-12-02 03:09:14
Cordova Android is an Android application library that allows for Cordova-based projects to be built for the Android Platform. Cordova based applications are, at the core, applications written with web technology: HTML, CSS and JavaScript. Apache Cordova is a project of The Apache Software Foundation (ASF). I have developed an app with Cordova which works as expected on iOS, and on Android when the signed app gets deployed from Android Studio direct to a Samsung S6. However, when downloading the app from Google Play it does not get requested data from a HTTPS request. Here are the whitelist

cordova error ENOENT

梦想与她 提交于 2019-12-02 01:05:01
I'm trying to add android platform using cordova but i'm getting that error. I have problem adding wp7, wp8 and windows 8 as shown below: I tried a few things found here Phonegap Build android - error "Adding the android platform" ENOENT but doesnt help me. Anyone have any idea how to solve this?? hdmartinez If after type android in cmd says: 'xcopy' was not recognized. then add to your path: %SystemRoot%\system32; %SystemRoot%; %SystemRoot%\System32\Wbem; After 3 days trying to solve the same issue, finally I found the solution. Thank's to: Installing Phonegap on Windows 7 : The command

cordova build error Exit code 1

夙愿已清 提交于 2019-12-01 14:48:42
I have created referred - https://cordova.apache.org/docs/en/latest/guide/cli/index.html#installing-the-cordova-cli for creating first cordova android app. I was able t create project and add android platform, but could not build cordova, following error appeared. Following is the commands executed from command prompt It looks more of a network issue. The gradle download will fail if you are using restricted proxy network. In case of network restrictions, you can work around this issue by following the steps below: 1) Download the required gradle version zip file from gradle distribution link

Phonegap 3.0 Custom Plugin

一曲冷凌霜 提交于 2019-12-01 14:27:39
I put together a plugin for an app some months ago with phonegap 2.7 and it worked perfectly. The plugin basically opens up the users phonebook and returns to my app the details of the contact the user selects. I have recently upgraded to Phonegap 3.0 and I am trying to convert my plugin to 3.0; However I can't get the plugin to work now that it's all 3.0....here is what I have ContactView.java src\com\huronasolutions\plugins\ContactView.java package com.huronasolutions.plugins; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; import android.app.Activity;

cordova build error Exit code 1

不羁岁月 提交于 2019-12-01 13:29:02
问题 I have created referred - https://cordova.apache.org/docs/en/latest/guide/cli/index.html#installing-the-cordova-cli for creating first cordova android app. I was able t create project and add android platform, but could not build cordova, following error appeared. Following is the commands executed from command prompt 回答1: It looks more of a network issue. The gradle download will fail if you are using restricted proxy network. In case of network restrictions, you can work around this issue

Phonegap 3.0 Custom Plugin

有些话、适合烂在心里 提交于 2019-12-01 13:21:33
问题 I put together a plugin for an app some months ago with phonegap 2.7 and it worked perfectly. The plugin basically opens up the users phonebook and returns to my app the details of the contact the user selects. I have recently upgraded to Phonegap 3.0 and I am trying to convert my plugin to 3.0; However I can't get the plugin to work now that it's all 3.0....here is what I have ContactView.java src\com\huronasolutions\plugins\ContactView.java package com.huronasolutions.plugins; import org

Upgrading from Cordova 2.5 to Cordova 3.0 , facing issue while using CordovaInterface

谁说胖子不能爱 提交于 2019-12-01 12:24:59
I am migrating my project to Cordova 3 from Cordova 2.5. Followed the migration process mentioned in http://cordova.apache.org/docs/en/3.0.0/guide_cli_index.md.html But, unfortunately getting the following error Preparing android project [Error: No Java files found which extend CordovaActivity.] In our app, we have a class which extends activity and implements CordovaInterface. And moreover this class is in the location mentioned in config.xml. Yet, I am facing the following error. Is it mandatory to substitute CordovaInterface with CordovaActivity? I am pretty sure that will not be the

Keep callback context in PhoneGap plugin?

ぃ、小莉子 提交于 2019-12-01 05:55:32
I need to implement some functionality that triggers an action on an interval and emits the results back to javascript. To simplify things I will use the echo example from the PhoneGap documentation: - (void)echo:(CDVInvokedUrlCommand*)command { [self.commandDelegate runInBackground:^{ CDVPluginResult* pluginResult = nil; NSString* echo = [command.arguments objectAtIndex:0]; if (echo != nil && [echo length] > 0) { pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK messageAsString:echo]; } else { pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR]; } [self

Keep callback context in PhoneGap plugin?

て烟熏妆下的殇ゞ 提交于 2019-12-01 03:21:36
问题 I need to implement some functionality that triggers an action on an interval and emits the results back to javascript. To simplify things I will use the echo example from the PhoneGap documentation: - (void)echo:(CDVInvokedUrlCommand*)command { [self.commandDelegate runInBackground:^{ CDVPluginResult* pluginResult = nil; NSString* echo = [command.arguments objectAtIndex:0]; if (echo != nil && [echo length] > 0) { pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK