[jira] [Commented] (CB-10177) Camera Plugin unable to choose video from gallery
[ https://issues.apache.org/jira/browse/CB-10177?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15091508#comment-15091508 ] Tanase Butcaru commented on CB-10177: - This [PR|https://github.com/apache/cordova-plugin-camera/pull/149] resolves the issue! > Camera Plugin unable to choose video from gallery > - > > Key: CB-10177 > URL: https://issues.apache.org/jira/browse/CB-10177 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin Camera > Environment: Android 4.4, Android 6, cordova-android 5.0.0, > cordova-plugin-camera 2.0.0 >Reporter: Kirill Anoshin > Labels: Android, triaged, wfc > > If you try to run the following code, you will receive empty string as the > path: > {code} > navigator.camera.getPicture(function(path) { > ... > }, onError, { > quality: 75, > destinationType: Camera.DestinationType.FILE_URI, > sourceType: Camera.PictureSourceType.PHOTOLIBRARY, > encodingType: Camera.EncodingType.JPEG, > popoverOptions: new CameraPopoverOptions(position.left, position.top), > mediaType: Camera.MediaType.PICTURE > }); > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-10227) Camera crashes on doubletap
[ https://issues.apache.org/jira/browse/CB-10227?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15091337#comment-15091337 ] Davide commented on CB-10227: - I adjusted the fix as my current one only allows you to focus once. Ill try to figure out how to apply a pull request. My latest fix lets you focus camera as much as you like Sent from my iPhone > Camera crashes on doubletap > --- > > Key: CB-10227 > URL: https://issues.apache.org/jira/browse/CB-10227 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin Camera >Affects Versions: 5.1.1, 5.4.0, 5.4.1 > Environment: Cordova Camera, Cordova, Windows Phone 8.1 >Reporter: Davide >Assignee: Raghav > Labels: triaged, windows > > With the new plugin version 2.0.0, they introduced a "Take Photo" button. > Spam tapping there seems to work fine. However, spam tapping on the camera > video will result in an exception: > Unhandled exception at line 387, column 21 in > ms-appx://hop.test1/www/plugins/cordova-plugin-camera/src/windows/CameraProxy.js > 0x80070149 - JavaScript runtime error: An operation is currently in progress > with the device. -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Created] (CB-10314) avoid fetching newId when oldId is already fetched
Byoungro So created CB-10314: Summary: avoid fetching newId when oldId is already fetched Key: CB-10314 URL: https://issues.apache.org/jira/browse/CB-10314 Project: Apache Cordova Issue Type: Bug Components: CordovaLib Reporter: Byoungro So Assignee: Byoungro So Priority: Minor As of Cordova 5.4.0, an old plugin id is automatically converted to a new id using the corodva-registry-mapper. This causes a new id to be fetched even if an old id is already fetched in the plugins directory (at cordova-lib/src/plugman/install.js) However, plugman/fetch.js/copyPlugin() checks if the alias id is already in the plugins directory, and skips installing the fetched newId plugin. This causes unnecessary overhead. It is better to check if the oldId is already fetched, and skips fetching the newId from the beginning. -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-9615) getsettings API removed from Android CordovaWebView which disables renderpriority and WebView tweaks for devices below Android 5
[ https://issues.apache.org/jira/browse/CB-9615?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15091239#comment-15091239 ] Chris Murdaugh commented on CB-9615: Hi Again Nikhil, Just wanted to add one more comment.. Even 4.3 is slow as molasses (slower in some cases than 4.1 and 4.2) for CSS3 animation frame rate - as you know, 4.3 is only a Chrome-based webview and Chromium Webview doesn't come in until kitkat 4.4 and above... Even on 4.4 and above I have seen cases where setting the RenderPriority with getSettings can boost CSS tranform framerate... The developer should be given the choice considering the totally anemic performance of Google's Webview for CSS (and Canvas) animation in its native webview... I understand you are lightening the load of Cordova for performance. My suggestion would be rather than killing off the getSettings API for Webview, it could be moved into a plugin - So the developer can choose whether to adopt 3rd party library like crosstalk or opt to use getSettings to disable GPU rendering to boost framerate for applications requiring HTML/Canvas animation... Thanks again. Chris > getsettings API removed from Android CordovaWebView which disables > renderpriority and WebView tweaks for devices below Android 5 > > > Key: CB-9615 > URL: https://issues.apache.org/jira/browse/CB-9615 > Project: Apache Cordova > Issue Type: Bug > Components: Android >Affects Versions: 4.1.0, 4.3.0, 4.0.1, 4.1.1 > Environment: Windows 8.1 and Android SDK with Eclipse or Android > Studio >Reporter: Chris Murdaugh > > getsettings API removed from CordovaWebView ex: > appView.getSettings().setRenderPriority in the java MainActivity no longer > works in Cordova Android 3.7.2 and above (to test you will need to set > hardwareacceleration to false in AndroidManifest and use the above java in > the mainactivity) - an undefined method is thrown in the compiler. This is a > deal-breaker as we cannot use Crosswalk because it adds 18mb to APK size (we > really need to stay below the 50MB cellular APK size limit for market reach). > We need our CSS3 transforms to be above 1-10fps for stability and the above > tweak has allowed us to maintain compatibility and performance for Android > 4.x and above (this issue affects all supported Android versions since CSS3 > transforms are slow without Crosswalk). Having the getsettings API removed > from Cordova 3.72 and above (and no replacement API exists) means that we > cannot upgrade our Cordova until this issue is resolved and will have to go > without patch for CVE-2015-1835. -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Comment Edited] (CB-10177) Camera Plugin unable to choose video from gallery
[ https://issues.apache.org/jira/browse/CB-10177?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15091122#comment-15091122 ] Tanase Butcaru edited comment on CB-10177 at 1/10/16 5:40 PM: -- I can confirm this issue. In your demo code the MediaType should be 'VIDEO', not picture, but still, this issue is real :) Regarding VIDEO from camera plugin, if the sourceType is 'CAMERA' and mediaType is 'VIDEO', why can't we just record video, but instead we can only take a picture? was (Author: tanasebutcaru): I can confirm this issue. > Camera Plugin unable to choose video from gallery > - > > Key: CB-10177 > URL: https://issues.apache.org/jira/browse/CB-10177 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin Camera > Environment: Android 4.4, Android 6, cordova-android 5.0.0, > cordova-plugin-camera 2.0.0 >Reporter: Kirill Anoshin > Labels: Android, triaged, wfc > > If you try to run the following code, you will receive empty string as the > path: > {code} > navigator.camera.getPicture(function(path) { > ... > }, onError, { > quality: 75, > destinationType: Camera.DestinationType.FILE_URI, > sourceType: Camera.PictureSourceType.PHOTOLIBRARY, > encodingType: Camera.EncodingType.JPEG, > popoverOptions: new CameraPopoverOptions(position.left, position.top), > mediaType: Camera.MediaType.PICTURE > }); > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-10177) Camera Plugin unable to choose video from gallery
[ https://issues.apache.org/jira/browse/CB-10177?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15091122#comment-15091122 ] Tanase Butcaru commented on CB-10177: - I can confirm this issue. > Camera Plugin unable to choose video from gallery > - > > Key: CB-10177 > URL: https://issues.apache.org/jira/browse/CB-10177 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin Camera > Environment: Android 4.4, Android 6, cordova-android 5.0.0, > cordova-plugin-camera 2.0.0 >Reporter: Kirill Anoshin > Labels: Android, triaged, wfc > > If you try to run the following code, you will receive empty string as the > path: > {code} > navigator.camera.getPicture(function(path) { > ... > }, onError, { > quality: 75, > destinationType: Camera.DestinationType.FILE_URI, > sourceType: Camera.PictureSourceType.PHOTOLIBRARY, > encodingType: Camera.EncodingType.JPEG, > popoverOptions: new CameraPopoverOptions(position.left, position.top), > mediaType: Camera.MediaType.PICTURE > }); > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-10284) Adding plugins seems to be totally broken on Cordova 5.4.0 and 5.4.1
[ https://issues.apache.org/jira/browse/CB-10284?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15090992#comment-15090992 ] Sebastien commented on CB-10284: OK so I managed to reproduce the issue. - I have both Cordova@5.3.3 and Ionic@1.7.12 CLIs globally installed - I start a new Ionic project like so `$ ionic start cordova-issue`, note that the project is created using Cordova@5.3.3 this way - I `$ cd cordova-issue && subl .` and change to content of the project _package.json_ file to be: {code:javascript|title="package.json"} { "private": true, "name": "cordova-issue", "version": "1.0.0", "scripts": { "postinstall": "rm -rf platforms plugins && ionic state restore", "start": "npm install && ionic run android --device" }, "devDependencies": { "cordova": "5.4.1", "ionic": "1.7.12" }, "cordovaPlugins": [ "cordova-plugin-whitelist@1.2.0" ], "cordovaPlatforms": [ "android@4.1.1" ] } {code} - I also edit the _www/index.html_ file to add `https://code.jquery.com/jquery-2.2.0.min.js";>` just before `` - Then I hook up an Android device, run `$ npm install && ionic run android --device` and use Chome for remote debugging the application - jQuery failed to load (_Failed to load resource: the server responded with a status of 404 (Not Found)_) even if `` is present in _config.xml_ Now I see what I did wrong: my `postinstall` NPM script uses the locally installed Cordova@5.4.1 CLI to rebuild the _platforms_ and _plugins_ directories but then I run the application using the globally installed Cordova@5.3.3 CLI so no surprise plugins don't load. If I just run `$ npm start` everything works as expected using Cordova@5.4.1 all the way through. My bad! Maybe some kind of solution here would be to warn the developer that there is a version mismatch that could lead to issues like this one :) Thanks > Adding plugins seems to be totally broken on Cordova 5.4.0 and 5.4.1 > > > Key: CB-10284 > URL: https://issues.apache.org/jira/browse/CB-10284 > Project: Apache Cordova > Issue Type: Bug > Components: CordovaLib >Affects Versions: 5.4.0, 5.4.1 > Environment: Mac OS X 10.10.5 >Reporter: Sebastien >Assignee: Vladimir Kotikov >Priority: Minor > Labels: triaged > > Using Cordova CLI 5.3.3, try creating a new project and then adding the > Android platform and the whitelist plugin (using `$ cordova plugin add > cordova-plugin-whitelist@1.2.0`). Then open the _plugins/android.json_ file, > its content is: > {code:javascript|title=plugins/android.json} > { > "prepare_queue": { > "installed": [], > "uninstalled": [] > }, > "config_munge": { > "files": { > "res/xml/config.xml": { > "parents": { > "/*": [ > { > "xml": " name=\"android-package\" > value=\"org.apache.cordova.whitelist.WhitelistPlugin\" /> name=\"onload\" value=\"true\" />", > "count": 1 > } > ] > } > } > } > }, > "installed_plugins": { > "cordova-plugin-whitelist": { > "PACKAGE_NAME": "com.my-app.dev" > } > }, > "dependent_plugins": {} > } > {code} > Now start another project using Cordova CLI 5.4.0 or 5.4.1 and do the same > exact thing. The file content is: > {code:javascript|title=plugins/android.json} > { > "prepare_queue": { > "installed": [], > "uninstalled": [] > }, > "config_munge": { > "files": {} > }, > "installed_plugins": { > "cordova-plugin-whitelist": { > "PACKAGE_NAME": "com.my-app.dev" > } > }, > "dependent_plugins": {} > } > {code} > Notice that `config_munge.files` is empty. This is a major regression as > plugins using this feature don't work at all sometimes even preventing the > `deviceready` event to be triggered. -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-10101) Build for Windows with appx=UAP fails with Microsoft.NuGet.targets error
[ https://issues.apache.org/jira/browse/CB-10101?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15090976#comment-15090976 ] Raghav commented on CB-10101: - Could you try specifying the architecture along with the build? cordova build windows -- --appx=uap --archs=x86 > Build for Windows with appx=UAP fails with Microsoft.NuGet.targets error > > > Key: CB-10101 > URL: https://issues.apache.org/jira/browse/CB-10101 > Project: Apache Cordova > Issue Type: Bug > Components: Windows >Affects Versions: Master > Environment: windows@4.2.0 platform, Windows 10 x64, Node 4.2.2 x64, > VS2015 + latest updates installed >Reporter: Christopher Mindus > > Project working with windows@4.1.0 now updated to 4.2.0 gives the following > error during building: > ...> cordova build windows -- --appx=uap > Running command: cmd "/s /c "...\platforms\windows\cordova\build.bat > --buildConfig=...\build.json --appx=uap"" > Reading build config file: ...\build.json > MSBuildToolsPath: C:\Program Files (x86)\MSBuild\14.0\bin > Building project: ...\platforms\windows\CordovaApp.Windows10.jsproj > Configuration : debug > Platform : anycpu > C:\Program Files > (x86)\MSBuild\Microsoft\NuGet\Microsoft.NuGet.targets(211,5): error : Your > project.json doesn't list 'win10' as a targeted runtime. You should > add '"win10": { }' inside your "runtimes" section in your project.json, and > then re-run NuGet restore. [...\platforms\windows\CordovaApp.Window > s10.jsproj] > ERROR: Error code 1 for command: C:\Program Files > (x86)\MSBuild\14.0\bin\msbuild with args: > ...\platforms\windows\CordovaApp.Windows10.jsproj,/clp:NoSummary;NoItemAndPropertyList;Verbosity=minimal,/nologo,/p:Configuration=debug,/p:Platform=anycpu > ERROR building one of the platforms: Error: cmd: Command failed with exit > code 2 > You may not have the required environment or OS to build this project > Error: cmd: Command failed with exit code 2 > I tried to "cordova platform rm windows" and then to add it again. No > difference. If I create a new test project, add the platform and build as > above it works just fine. -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org