[jira] [Commented] (CB-13104) "Error: Cannot read property 'length' of undefined" when executing "cordova run android"

2017-07-27 Thread Nikita Matrosov (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-13104?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16103317#comment-16103317
 ] 

Nikita Matrosov commented on CB-13104:
--

[~bowserj], I've tried to install a new instance of AS and update existing one, 
but not noticed changes regarding Gradle location.
But anyway, I think, it's better to continue search or at least output more 
descriptive message if Gradle not found in AS.

> "Error: Cannot read property 'length' of undefined" when executing "cordova 
> run android"
> 
>
> Key: CB-13104
> URL: https://issues.apache.org/jira/browse/CB-13104
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: cordova-android
> Environment: Windows 7 Professional x64
> Java SDK 8u131
> npm 5.2.0
> phonegap 6.5.2
> cordova 6.5.0
> cordova android platform 6.2.3
> android studio 2.3.3
> android sdk build-tools 26
> android sdk tools 26.0.2
> android sdk platform-tools 26.0.0
> android emulator 26.1.2
> android support repository 47.0.0
>Reporter: Bryan Bale
>Assignee: Joe Bowser
>
> I've searched for solutions to this problem, and found several reports of it, 
> but no solutions.  Based on my many attempts to get something to work (I've 
> tried phonegap, ionic, and just plain cordova), I started suspecting that 
> there's a bug in the cordova android platform.  All my build attempts have 
> been halted at this error message:
> {{Error: Cannot read property 'length' of undefined}}
> *Replicating this issue with phonegap:*
> _I'm starting with phonegap because this is how I first encountered the 
> error, and it seems to give me the most useful information with regard to 
> where the error is happening._
> $ npm install -g phonegap
> npm WARN deprecated tough-cookie@2.2.2: ReDoS vulnerability parsing 
> Set-Cookie https://nodesecurity.io/advisories/130  
> npm WARN deprecated node-uuid@1.4.8: Use uuid module instead  
>  
> C:\Users\bbale\AppData\Roaming\npm\phonegap -> 
> C:\Users\bbale\AppData\Roaming\npm\node_modules\phonegap\bin\phonegap.js
> + phonegap@6.5.2  
>  
> added 873 packages in 146.435s
>  
> $ phonegap create pgHello --id "com.pghello.app" --name "pgHello" --template 
> hello-world
> Creating a new cordova project.
> $ cd pgHello
> $ phonegap run android --verbose
> [phonegap] executing 'cordova platform add --save android ' ...   
>   
> 
> Adding android project... 
>   
> 
>   
>   
> 
> Creating Cordova project for the Android platform:
>   
> 
> Path: platforms\android   
>   
> 
> Package: com.pghello.app  
>   
> 
> Name: pgHello 
>   
> 
> Activity: MainActivity
>   
> 
> Android target: android-25
>   
> 
>   
>   
> 
> Subproject Path: CordovaLib   
>   

[jira] [Commented] (CB-13104) "Error: Cannot read property 'length' of undefined" when executing "cordova run android"

2017-07-26 Thread Nikita Matrosov (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-13104?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16101763#comment-16101763
 ] 

Nikita Matrosov commented on CB-13104:
--

This bug happens when this folder {{C:\Program Files\Android\Android 
Studio\gradle}} doesn't contain a directory of this type {{gradle-}} 
or it's returned as the second folder.

[~bbale], could you please provide what folders are here ({{C:\Program 
Files\Android\Android Studio\gradle}})?

Possible fix - 
https://github.com/matrosov-nikita/cordova-android/commit/a800d32bd811685515daefb62cb3da3f9e63ac54
 (continue searching gradle in user system path if this condition 
(https://github.com/apache/cordova-android/blob/master/bin/templates/cordova/lib/check_reqs.js#L138)
 is false)

> "Error: Cannot read property 'length' of undefined" when executing "cordova 
> run android"
> 
>
> Key: CB-13104
> URL: https://issues.apache.org/jira/browse/CB-13104
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: cordova-android
> Environment: Windows 7 Professional x64
> Java SDK 8u131
> npm 5.2.0
> phonegap 6.5.2
> cordova 6.5.0
> cordova android platform 6.2.3
> android studio 2.3.3
> android sdk build-tools 26
> android sdk tools 26.0.2
> android sdk platform-tools 26.0.0
> android emulator 26.1.2
> android support repository 47.0.0
>Reporter: Bryan Bale
>Assignee: Joe Bowser
>
> I've searched for solutions to this problem, and found several reports of it, 
> but no solutions.  Based on my many attempts to get something to work (I've 
> tried phonegap, ionic, and just plain cordova), I started suspecting that 
> there's a bug in the cordova android platform.  All my build attempts have 
> been halted at this error message:
> {{Error: Cannot read property 'length' of undefined}}
> *Replicating this issue with phonegap:*
> _I'm starting with phonegap because this is how I first encountered the 
> error, and it seems to give me the most useful information with regard to 
> where the error is happening._
> $ npm install -g phonegap
> npm WARN deprecated tough-cookie@2.2.2: ReDoS vulnerability parsing 
> Set-Cookie https://nodesecurity.io/advisories/130  
> npm WARN deprecated node-uuid@1.4.8: Use uuid module instead  
>  
> C:\Users\bbale\AppData\Roaming\npm\phonegap -> 
> C:\Users\bbale\AppData\Roaming\npm\node_modules\phonegap\bin\phonegap.js
> + phonegap@6.5.2  
>  
> added 873 packages in 146.435s
>  
> $ phonegap create pgHello --id "com.pghello.app" --name "pgHello" --template 
> hello-world
> Creating a new cordova project.
> $ cd pgHello
> $ phonegap run android --verbose
> [phonegap] executing 'cordova platform add --save android ' ...   
>   
> 
> Adding android project... 
>   
> 
>   
>   
> 
> Creating Cordova project for the Android platform:
>   
> 
> Path: platforms\android   
>   
> 
> Package: com.pghello.app  
>   
> 
> Name: pgHello 
>   
> 
> Activity: MainActivity
>   
> 
> Android target: android-25
>   
> 
>  

[jira] [Commented] (CB-13031) config.xml: android-packageName case-sensitivity

2017-07-19 Thread Nikita Matrosov (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-13031?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16093729#comment-16093729
 ] 

Nikita Matrosov commented on CB-13031:
--

[~Ronald987], just add platform from my branch: {{cordova platform add 
https://github.com/matrosov-nikita/cordova-android.git#CB-13031}} (only for 
testing purposes), if it's ok, I'll send PR.

> config.xml: android-packageName case-sensitivity
> 
>
> Key: CB-13031
> URL: https://issues.apache.org/jira/browse/CB-13031
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: cordova-android
>Affects Versions: 7.0.1
>Reporter: Ronald Klip
>Assignee: Nikita Matrosov
>Priority: Minor
>  Labels: osx, windows
>
> In config.xml, setting {{android-packageName}} to a value that only differs 
> from {{id}} in capitalization causes an error with {{platform add android}} .
> *Example:*
> {{cordova create testapp com.example.testapp testapp}}
> {{cd testapp}}
> (edit config.xml, add android-packageName="com.example.Testapp" to )
> {{cordova platform add android}}
> *Output:*
> Using cordova-fetch for cordova-android@~6.2.2
> Adding android project...
> Creating Cordova project for the Android platform:
>   Path: platforms/android
>   Package: com.example.testapp
>   Name: testapp
>   Activity: MainActivity
>   Android target: android-25
> Subproject Path: CordovaLib
> Android project created with cordova-android@6.2.3
> Discovered plugin "cordova-plugin-whitelist" in config.xml. Adding it to the 
> project
> Installing "cordova-plugin-whitelist" for android
>This plugin is only applicable for versions of cordova-android 
> greater than 4.0. If you have a previous platform version, you do *not* need 
> this plugin since the whitelist will be built in.
>   
> Adding cordova-plugin-whitelist to package.json
> Saved plugin info for "cordova-plugin-whitelist" to config.xml
> ls: no such file or directory: 
> /Users/ronald987/dev/apps/testapp/platforms/android/src/com/example/Testapp/*.java
> {color:red}Error: No Java files found that extend CordovaActivity.{color}
> 
> The directory and the .java indeed don't exist. In platforms/android/src 
> there's only an org directory. 



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-13031) config.xml: android-packageName case-sensitivity

2017-07-19 Thread Nikita Matrosov (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-13031?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16093169#comment-16093169
 ] 

Nikita Matrosov commented on CB-13031:
--

[~Ronald987], thanks for the update, I confirm that this bug also reproduces on 
MacOS. Here's a fix: 
https://github.com/matrosov-nikita/cordova-android/commit/61add83c4145a234df0c9cfd5bdbfdd4dd945609.
 Could you please check whether it resolves your problem?

> config.xml: android-packageName case-sensitivity
> 
>
> Key: CB-13031
> URL: https://issues.apache.org/jira/browse/CB-13031
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: cordova-android
>Affects Versions: 7.0.1
>Reporter: Ronald Klip
>Assignee: Nikita Matrosov
>Priority: Minor
>  Labels: osx, windows
>
> In config.xml, setting {{android-packageName}} to a value that only differs 
> from {{id}} in capitalization causes an error with {{platform add android}} .
> *Example:*
> {{cordova create testapp com.example.testapp testapp}}
> {{cd testapp}}
> (edit config.xml, add android-packageName="com.example.Testapp" to )
> {{cordova platform add android}}
> *Output:*
> Using cordova-fetch for cordova-android@~6.2.2
> Adding android project...
> Creating Cordova project for the Android platform:
>   Path: platforms/android
>   Package: com.example.testapp
>   Name: testapp
>   Activity: MainActivity
>   Android target: android-25
> Subproject Path: CordovaLib
> Android project created with cordova-android@6.2.3
> Discovered plugin "cordova-plugin-whitelist" in config.xml. Adding it to the 
> project
> Installing "cordova-plugin-whitelist" for android
>This plugin is only applicable for versions of cordova-android 
> greater than 4.0. If you have a previous platform version, you do *not* need 
> this plugin since the whitelist will be built in.
>   
> Adding cordova-plugin-whitelist to package.json
> Saved plugin info for "cordova-plugin-whitelist" to config.xml
> ls: no such file or directory: 
> /Users/ronald987/dev/apps/testapp/platforms/android/src/com/example/Testapp/*.java
> {color:red}Error: No Java files found that extend CordovaActivity.{color}
> 
> The directory and the .java indeed don't exist. In platforms/android/src 
> there's only an org directory. 



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Updated] (CB-13031) config.xml: android-packageName case-sensitivity

2017-07-19 Thread Nikita Matrosov (JIRA)

 [ 
https://issues.apache.org/jira/browse/CB-13031?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nikita Matrosov updated CB-13031:
-
Labels: osx windows  (was: windows)

> config.xml: android-packageName case-sensitivity
> 
>
> Key: CB-13031
> URL: https://issues.apache.org/jira/browse/CB-13031
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: cordova-android
>Affects Versions: 7.0.1
>Reporter: Ronald Klip
>Assignee: Nikita Matrosov
>Priority: Minor
>  Labels: osx, windows
>
> In config.xml, setting {{android-packageName}} to a value that only differs 
> from {{id}} in capitalization causes an error with {{platform add android}} .
> *Example:*
> {{cordova create testapp com.example.testapp testapp}}
> {{cd testapp}}
> (edit config.xml, add android-packageName="com.example.Testapp" to )
> {{cordova platform add android}}
> *Output:*
> Using cordova-fetch for cordova-android@~6.2.2
> Adding android project...
> Creating Cordova project for the Android platform:
>   Path: platforms/android
>   Package: com.example.testapp
>   Name: testapp
>   Activity: MainActivity
>   Android target: android-25
> Subproject Path: CordovaLib
> Android project created with cordova-android@6.2.3
> Discovered plugin "cordova-plugin-whitelist" in config.xml. Adding it to the 
> project
> Installing "cordova-plugin-whitelist" for android
>This plugin is only applicable for versions of cordova-android 
> greater than 4.0. If you have a previous platform version, you do *not* need 
> this plugin since the whitelist will be built in.
>   
> Adding cordova-plugin-whitelist to package.json
> Saved plugin info for "cordova-plugin-whitelist" to config.xml
> ls: no such file or directory: 
> /Users/ronald987/dev/apps/testapp/platforms/android/src/com/example/Testapp/*.java
> {color:red}Error: No Java files found that extend CordovaActivity.{color}
> 
> The directory and the .java indeed don't exist. In platforms/android/src 
> there's only an org directory. 



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-12969) InAppBrowser - Cannot open data URLs in system browser

2017-07-19 Thread Nikita Matrosov (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-12969?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16092853#comment-16092853
 ] 

Nikita Matrosov commented on CB-12969:
--

[~Sachitra], seems there are some limitations to launch Safari with data Uri 
and we have no control over it:
https://stackoverflow.com/questions/641461/iphone-open-data-url-in-safari
https://issues.apache.org/jira/browse/CB-3302

> InAppBrowser - Cannot open data URLs in system browser
> --
>
> Key: CB-12969
> URL: https://issues.apache.org/jira/browse/CB-12969
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: cordova-plugin-inappbrowser
> Environment: iOS, Android
>Reporter: Sachitra Malwatte
>Assignee: Nikita Matrosov
>Priority: Critical
>
> I want to open data URLs in system browser. So I did this,
> {code:java}
> window.open('data:text/html, Hello', 
> '_system');
> {code}
> But nothing happens (browser won't open).
> It works with normal URLs. e.g. 
> window.open('https://github.com/apache/cordova-plugin-inappbrowser', 
> '_system'); But not with data URIs.
> inappbrowser version: 1.7.1
> Please help.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-13031) config.xml: android-packageName case-sensitivity

2017-07-18 Thread Nikita Matrosov (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-13031?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16091701#comment-16091701
 ] 

Nikita Matrosov commented on CB-13031:
--

[~Ronald987], I can confirm this bug, it affects only Windows OS.
Since your package name (com.example.Testapp) and original one 
(com.example.testapp) differ, cordova-android tries to create a new directory 
(platforms\android\src\com\example\Testapp) according to changed name and then 
remove old, but can not do it due to Windows is case insensitive.
I'll send PR to fix it.

> config.xml: android-packageName case-sensitivity
> 
>
> Key: CB-13031
> URL: https://issues.apache.org/jira/browse/CB-13031
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: cordova-android
>Affects Versions: 7.0.1
>Reporter: Ronald Klip
>Assignee: Nikita Matrosov
>Priority: Minor
>  Labels: windows
>
> In config.xml, setting {{android-packageName}} to a value that only differs 
> from {{id}} in capitalization causes an error with {{platform add android}} .
> *Example:*
> {{cordova create testapp com.example.testapp testapp}}
> {{cd testapp}}
> (edit config.xml, add android-packageName="com.example.Testapp" to )
> {{cordova platform add android}}
> *Output:*
> Using cordova-fetch for cordova-android@~6.2.2
> Adding android project...
> Creating Cordova project for the Android platform:
>   Path: platforms/android
>   Package: com.example.testapp
>   Name: testapp
>   Activity: MainActivity
>   Android target: android-25
> Subproject Path: CordovaLib
> Android project created with cordova-android@6.2.3
> Discovered plugin "cordova-plugin-whitelist" in config.xml. Adding it to the 
> project
> Installing "cordova-plugin-whitelist" for android
>This plugin is only applicable for versions of cordova-android 
> greater than 4.0. If you have a previous platform version, you do *not* need 
> this plugin since the whitelist will be built in.
>   
> Adding cordova-plugin-whitelist to package.json
> Saved plugin info for "cordova-plugin-whitelist" to config.xml
> ls: no such file or directory: 
> /Users/ronald987/dev/apps/testapp/platforms/android/src/com/example/Testapp/*.java
> {color:red}Error: No Java files found that extend CordovaActivity.{color}
> 
> The directory and the .java indeed don't exist. In platforms/android/src 
> there's only an org directory. 



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Updated] (CB-13031) config.xml: android-packageName case-sensitivity

2017-07-18 Thread Nikita Matrosov (JIRA)

 [ 
https://issues.apache.org/jira/browse/CB-13031?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nikita Matrosov updated CB-13031:
-
Labels: windows  (was: )

> config.xml: android-packageName case-sensitivity
> 
>
> Key: CB-13031
> URL: https://issues.apache.org/jira/browse/CB-13031
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: cordova-android
>Affects Versions: 7.0.1
>Reporter: Ronald Klip
>Assignee: Nikita Matrosov
>Priority: Minor
>  Labels: windows
>
> In config.xml, setting {{android-packageName}} to a value that only differs 
> from {{id}} in capitalization causes an error with {{platform add android}} .
> *Example:*
> {{cordova create testapp com.example.testapp testapp}}
> {{cd testapp}}
> (edit config.xml, add android-packageName="com.example.Testapp" to )
> {{cordova platform add android}}
> *Output:*
> Using cordova-fetch for cordova-android@~6.2.2
> Adding android project...
> Creating Cordova project for the Android platform:
>   Path: platforms/android
>   Package: com.example.testapp
>   Name: testapp
>   Activity: MainActivity
>   Android target: android-25
> Subproject Path: CordovaLib
> Android project created with cordova-android@6.2.3
> Discovered plugin "cordova-plugin-whitelist" in config.xml. Adding it to the 
> project
> Installing "cordova-plugin-whitelist" for android
>This plugin is only applicable for versions of cordova-android 
> greater than 4.0. If you have a previous platform version, you do *not* need 
> this plugin since the whitelist will be built in.
>   
> Adding cordova-plugin-whitelist to package.json
> Saved plugin info for "cordova-plugin-whitelist" to config.xml
> ls: no such file or directory: 
> /Users/ronald987/dev/apps/testapp/platforms/android/src/com/example/Testapp/*.java
> {color:red}Error: No Java files found that extend CordovaActivity.{color}
> 
> The directory and the .java indeed don't exist. In platforms/android/src 
> there's only an org directory. 



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Updated] (CB-13031) config.xml: android-packageName case-sensitivity

2017-07-18 Thread Nikita Matrosov (JIRA)

 [ 
https://issues.apache.org/jira/browse/CB-13031?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nikita Matrosov updated CB-13031:
-
Component/s: (was: cordova-cli)
 cordova-android

> config.xml: android-packageName case-sensitivity
> 
>
> Key: CB-13031
> URL: https://issues.apache.org/jira/browse/CB-13031
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: cordova-android
>Affects Versions: 7.0.1
>Reporter: Ronald Klip
>Assignee: Nikita Matrosov
>Priority: Minor
>  Labels: windows
>
> In config.xml, setting {{android-packageName}} to a value that only differs 
> from {{id}} in capitalization causes an error with {{platform add android}} .
> *Example:*
> {{cordova create testapp com.example.testapp testapp}}
> {{cd testapp}}
> (edit config.xml, add android-packageName="com.example.Testapp" to )
> {{cordova platform add android}}
> *Output:*
> Using cordova-fetch for cordova-android@~6.2.2
> Adding android project...
> Creating Cordova project for the Android platform:
>   Path: platforms/android
>   Package: com.example.testapp
>   Name: testapp
>   Activity: MainActivity
>   Android target: android-25
> Subproject Path: CordovaLib
> Android project created with cordova-android@6.2.3
> Discovered plugin "cordova-plugin-whitelist" in config.xml. Adding it to the 
> project
> Installing "cordova-plugin-whitelist" for android
>This plugin is only applicable for versions of cordova-android 
> greater than 4.0. If you have a previous platform version, you do *not* need 
> this plugin since the whitelist will be built in.
>   
> Adding cordova-plugin-whitelist to package.json
> Saved plugin info for "cordova-plugin-whitelist" to config.xml
> ls: no such file or directory: 
> /Users/ronald987/dev/apps/testapp/platforms/android/src/com/example/Testapp/*.java
> {color:red}Error: No Java files found that extend CordovaActivity.{color}
> 
> The directory and the .java indeed don't exist. In platforms/android/src 
> there's only an org directory. 



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Assigned] (CB-13031) config.xml: android-packageName case-sensitivity

2017-07-18 Thread Nikita Matrosov (JIRA)

 [ 
https://issues.apache.org/jira/browse/CB-13031?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nikita Matrosov reassigned CB-13031:


Assignee: Nikita Matrosov

> config.xml: android-packageName case-sensitivity
> 
>
> Key: CB-13031
> URL: https://issues.apache.org/jira/browse/CB-13031
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: cordova-cli
>Affects Versions: 7.0.1
>Reporter: Ronald Klip
>Assignee: Nikita Matrosov
>Priority: Minor
>
> In config.xml, setting {{android-packageName}} to a value that only differs 
> from {{id}} in capitalization causes an error with {{platform add android}} .
> *Example:*
> {{cordova create testapp com.example.testapp testapp}}
> {{cd testapp}}
> (edit config.xml, add android-packageName="com.example.Testapp" to )
> {{cordova platform add android}}
> *Output:*
> Using cordova-fetch for cordova-android@~6.2.2
> Adding android project...
> Creating Cordova project for the Android platform:
>   Path: platforms/android
>   Package: com.example.testapp
>   Name: testapp
>   Activity: MainActivity
>   Android target: android-25
> Subproject Path: CordovaLib
> Android project created with cordova-android@6.2.3
> Discovered plugin "cordova-plugin-whitelist" in config.xml. Adding it to the 
> project
> Installing "cordova-plugin-whitelist" for android
>This plugin is only applicable for versions of cordova-android 
> greater than 4.0. If you have a previous platform version, you do *not* need 
> this plugin since the whitelist will be built in.
>   
> Adding cordova-plugin-whitelist to package.json
> Saved plugin info for "cordova-plugin-whitelist" to config.xml
> ls: no such file or directory: 
> /Users/ronald987/dev/apps/testapp/platforms/android/src/com/example/Testapp/*.java
> {color:red}Error: No Java files found that extend CordovaActivity.{color}
> 
> The directory and the .java indeed don't exist. In platforms/android/src 
> there's only an org directory. 



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-12969) InAppBrowser - Cannot open data URLs in system browser

2017-07-14 Thread Nikita Matrosov (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-12969?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16087106#comment-16087106
 ] 

Nikita Matrosov commented on CB-12969:
--

[~Sachitra], I've been working on this bug. Here's fix for Android: 
https://github.com/matrosov-nikita/cordova-plugin-inappbrowser/commit/01af013f25c71a5208e7b642344717376a046f2f

> InAppBrowser - Cannot open data URLs in system browser
> --
>
> Key: CB-12969
> URL: https://issues.apache.org/jira/browse/CB-12969
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: cordova-plugin-inappbrowser
> Environment: iOS, Android
>Reporter: Sachitra Malwatte
>Assignee: Nikita Matrosov
>Priority: Critical
>
> I want to open data URLs in system browser. So I did this,
> {code:java}
> window.open('data:text/html, Hello', 
> '_system');
> {code}
> But nothing happens (browser won't open).
> It works with normal URLs. e.g. 
> window.open('https://github.com/apache/cordova-plugin-inappbrowser', 
> '_system'); But not with data URIs.
> inappbrowser version: 1.7.1
> Please help.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Assigned] (CB-12969) InAppBrowser - Cannot open data URLs in system browser

2017-07-14 Thread Nikita Matrosov (JIRA)

 [ 
https://issues.apache.org/jira/browse/CB-12969?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nikita Matrosov reassigned CB-12969:


Assignee: Nikita Matrosov

> InAppBrowser - Cannot open data URLs in system browser
> --
>
> Key: CB-12969
> URL: https://issues.apache.org/jira/browse/CB-12969
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: cordova-plugin-inappbrowser
> Environment: iOS, Android
>Reporter: Sachitra Malwatte
>Assignee: Nikita Matrosov
>Priority: Critical
>
> I want to open data URLs in system browser. So I did this,
> {code:java}
> window.open('data:text/html, Hello', 
> '_system');
> {code}
> But nothing happens (browser won't open).
> It works with normal URLs. e.g. 
> window.open('https://github.com/apache/cordova-plugin-inappbrowser', 
> '_system'); But not with data URIs.
> inappbrowser version: 1.7.1
> Please help.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-13012) InAppBrowser no focus on input text fields

2017-07-13 Thread Nikita Matrosov (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-13012?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16085704#comment-16085704
 ] 

Nikita Matrosov commented on CB-13012:
--

Does not reproduce this bug. [~shuppert], could you please provide more 
information about your case (plugin version, code snippet, device details)

> InAppBrowser no focus on input text fields
> --
>
> Key: CB-13012
> URL: https://issues.apache.org/jira/browse/CB-13012
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: cordova-plugin-inappbrowser
> Environment: Android
>Reporter: Scott Huppert
>  Labels: android
>
> The same issue from CB-11248 still exists.  The first time accessing the IAB 
> works but after multiple accesses the same issue occurs.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-13016) Hooks are not fired from "cordova run" command

2017-07-13 Thread Nikita Matrosov (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-13016?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16085585#comment-16085585
 ] 

Nikita Matrosov commented on CB-13016:
--

[~alejandro_liu], seems, that only 'prepare' hooks should be called for both 
the 'cordova build' and 'cordova run' cases (see docs - 
https://cordova.apache.org/docs/en/latest/guide/appdev/hooks/#introduction).
For `cordova run` command you can also use 'before_deploy', 'after_deploy', 
'before_run', 'after_run'.

> Hooks are not fired from "cordova run" command
> --
>
> Key: CB-13016
> URL: https://issues.apache.org/jira/browse/CB-13016
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: cordova-cli
>Affects Versions: 7.0.1
> Environment: I have only tested it on 7.0.1 using the Command Line 
> Interface, under Linux.
>Reporter: Alejandro Liu
>
> I have created hooks in config.xml as this:
> 
> 
> 
> 
> 
> 
> The scripts simply would print 'CORDOVA_HOOK' environment variable.
> If I run: cordova run, that triggers the "build" process but this build 
> process does not call the build or compile hooks.  Only the "prepare" hooks 
> are called.
> I think the build and/or compile hooks should be called.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-13008) Can't record audio

2017-07-11 Thread Nikita Matrosov (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-13008?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16082272#comment-16082272
 ] 

Nikita Matrosov commented on CB-13008:
--

[~meshredded], as far as I know, some of the devices don't support the 3gp 
format. Could you please specify the model of your device?
Also, please verify whether temporary file is being created before start 
recording:  {{/storage/emulated/0/tmprecording-.3gp}}





> Can't record audio
> --
>
> Key: CB-13008
> URL: https://issues.apache.org/jira/browse/CB-13008
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: cordova-android
>Reporter: Mohammed MECHERI
>
> So i have a hard time trying to record audio : 
> My Code :
> var my_media = new Media("toto.3gp",
>   ()=>onSuccess(),
>   (err)=>onError(err),
>   (status)=>mediaStatus(status)
> );
> console.log(my_media); // Media {id: 
> "07053344-6274-09eb-62ca-d63f099f2a4b", src: "toto.3gp", _duration: -1, 
> _position: -1}
> my_media.startRecord();
> console.log(my_media); // Media {id: 
> "07053344-6274-09eb-62ca-d63f099f2a4b", src: "toto.3gp", _duration: -1, 
> _position: -1}
> I made sure that the media object is correctly initialized and it is.
> on Android console i got this:
> 07-10 19:59:20.019 31861-31917/com.phonegap.reacthotloadingtemplate 
> E/MediaRecorder: start failed: -2147483648
> 07-10 19:59:20.019 31861-31917/com.phonegap.reacthotloadingtemplate 
> E/PluginManager: Uncaught exception from plugin
>   
>java.lang.RuntimeException: start failed.
>   
>at android.media.MediaRecorder.start(Native Method)
>   
>at 
> org.apache.cordova.media.AudioPlayer.startRecording(AudioPlayer.java:160)
>   
>at 
> org.apache.cordova.media.AudioHandler.startRecordingAudio(AudioHandler.java:287)
>   
>at 
> org.apache.cordova.media.AudioHandler.promptForRecord(AudioHandler.java:543)
>   
>at 
> org.apache.cordova.media.AudioHandler.execute(AudioHandler.java:118)
>   
>at 
> org.apache.cordova.CordovaPlugin.execute(CordovaPlugin.java:98)
>   
>at 
> org.apache.cordova.PluginManager.exec(PluginManager.java:132)
>   
>at 
> org.apache.cordova.CordovaBridge.jsExec(CordovaBridge.java:57)
>   
>at 
> org.apache.cordova.engine.SystemExposedJsApi.exec(SystemExposedJsApi.java:41)
>   
>at 
> org.chromium.base.SystemMessageHandler.nativeDoRunLoopOnce(Native Method)
>   
>at 
> org.chromium.base.SystemMessageHandler.handleMessage(SystemMessageHandler.java:39)
>   
>at android.os.Handler.dispatchMessage(Handler.java:102)
>   
>at android.os.Looper.loop(Looper.java:154)
>   
>at android.os.HandlerThread.run(HandlerThread.java:61)
> Media Permissions are correctly set by the plugin (Automatically):
>  
>  android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
> 
>  android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
> 
> So what do you think the problem is ?
>   [1]: https://github.com/apache/cordova-plugin-media



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Created] (CB-13010) Improve logic for searching packages which being installed from git url

2017-07-11 Thread Nikita Matrosov (JIRA)
Nikita Matrosov created CB-13010:


 Summary: Improve logic for searching packages which being 
installed from git url
 Key: CB-13010
 URL: https://issues.apache.org/jira/browse/CB-13010
 Project: Apache Cordova
  Issue Type: Bug
  Components: cordova-fetch
Affects Versions: Master
Reporter: Nikita Matrosov
Assignee: Nikita Matrosov


test version: master
steps to reproduce (add twice plugin using git URL):


{code:java}
cordova plugin add 
https://github.com/AzureAD/azure-activedirectory-library-for-cordova.git
cordova plugin add 
https://github.com/AzureAD/azure-activedirectory-library-for-cordova.git
{code}

Need to perform an additional search in destination folder by going through all 
modules and compare repository.url property from package.json with target.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-13001) NPM Installation loop with package-lock.json and cordova-plugin-device

2017-07-10 Thread Nikita Matrosov (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-13001?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16080357#comment-16080357
 ] 

Nikita Matrosov commented on CB-13001:
--

[~Paedly], could you please try with an older npm version (pre 5)? (see 
https://forum.ionicframework.com/t/eloop-too-many-symbolic-links-encountered/94992)

> NPM Installation loop with package-lock.json and cordova-plugin-device
> --
>
> Key: CB-13001
> URL: https://issues.apache.org/jira/browse/CB-13001
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: cordova-plugin-device
>Affects Versions: 1.1.0, 7.0.0, 1.1.3, 1.1.1, 7.0.2, cordova@7.0.0, 7.0.1
> Environment: Docker environment on bitrise.io & Windows 10 64-bit 
> with nodejs 6.9.1 and NPM 5.0.4
>Reporter: Paedly
>
> If this lines are in the {{package-lock.json}} I get a symlink loop on my 
> linux docker environment.
> {code:javascript}"cordova-plugin-device": {
>   "version": "1.1.6",
>   "resolved": 
> "https://registry.npmjs.org/cordova-plugin-device/-/cordova-plugin-device-1.1.6.tgz";,
>   "integrity": "sha1-LSF2TK18m4AVI+TgmjDgJLJJM0s="
> },{code}
> Here is the {{package.json}}:
> {code:javascript}{
> "version": "0.0.1",
> "author": "Ionic Framework",
> "homepage": "http://ionicframework.com/";,
> "private": true,
> "dependencies": {
> "cordova-plugin-device": "^1.1.6"
> },
> "devDependencies": {
> "@ionic/cli-plugin-cordova": "1.4.0",
> "@ionic/cli-plugin-ionic-angular": "1.3.1",
> "typescript": "2.3.4"
> },
> "cordova": {
> "plugins": {
> "cordova-plugin-device": {}
> },
> "platforms": [
> "android",
> "ios"
> ]
> }
> }{code}
> *And this is the error.*
> {code}Error: npm: Command failed with exit code 216 Error output:
> npm ERR! path
> /bitrise/src/node_modules/cordova-plugin-device/package.json
> npm ERR! code ELOOP
> npm ERR! errno -40
> npm ERR! syscall open
> npm ERR! ELOOP: too many symbolic links encountered, open
> '/bitrise/src/node_modules/cordova-plugin-device/package.json'{code}
> Don't know what the problem is with this {{package-lock.json}} entry.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-12932) InAppBrowser plugin crash on Android

2017-07-10 Thread Nikita Matrosov (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-12932?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16080338#comment-16080338
 ] 

Nikita Matrosov commented on CB-12932:
--

[~thibaut], Could not reproduce it with the following list of dependencies in 
build.gradle:


{code:java}
dependencies {
compile 'com.google.android.gms:play-services:11.0.2'
compile fileTree(dir: 'libs', include: '*.jar')

// SUB-PROJECT DEPENDENCIES START
debugCompile(project(path: "CordovaLib", configuration: "debug"))
releaseCompile(project(path: "CordovaLib", configuration: "release"))
// SUB-PROJECT DEPENDENCIES END
}
{code}


But according to the stack trace, a plugin could not find 
'ic_action_previous_item' icon which is used with '_blank' target. There is a 
list of folders where this icon should be 
(https://github.com/apache/cordova-plugin-inappbrowser/blob/master/plugin.xml#L92-L95).

> InAppBrowser plugin crash on Android
> 
>
> Key: CB-12932
> URL: https://issues.apache.org/jira/browse/CB-12932
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: cordova-plugin-inappbrowser
>Affects Versions: cordova@7.0.0
>Reporter: thibaut
>
> When using the _blank option, the cordova plugin now crash the entire 
> application on Android 6 and 7 after updating to the last SDK available of 
> Google:
> Fabric tells me this :
> {code:java}
> Fatal Exception: android.content.res.Resources$NotFoundException: Resource ID 
> #0x0
>at android.content.res.ResourcesImpl.getValue(ResourcesImpl.java:202)
>at android.content.res.Resources.getDrawable(Resources.java:1639)
>at android.content.res.Resources.getDrawable(Resources.java:1611)
>at 
> org.apache.cordova.inappbrowser.InAppBrowser$6.run(InAppBrowser.java:637)
>at android.app.Activity.runOnUiThread(Activity.java:6030)
>at 
> org.apache.cordova.inappbrowser.InAppBrowser.showWebPage(InAppBrowser.java:852)
>at 
> org.apache.cordova.inappbrowser.InAppBrowser$1.run(InAppBrowser.java:207)
>at android.os.Handler.handleCallback(Handler.java:751)
>at android.os.Handler.dispatchMessage(Handler.java:95)
>at android.os.Looper.loop(Looper.java:154)
>at android.app.ActivityThread.main(ActivityThread.java:6692)
>at java.lang.reflect.Method.invoke(Method.java)
>at 
> com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1468)
>at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1358)
> {code}
> I tried with _system : No Crash, but every time I use _blank, the app crashed.
> It happens since I updated my google sdk (I think it was the play services, 
> but not sure about this)
> Thanking you in advance



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Resolved] (CB-12085) FileReader#readAsArrayBuffer reads whole file

2017-06-26 Thread Nikita Matrosov (JIRA)

 [ 
https://issues.apache.org/jira/browse/CB-12085?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nikita Matrosov resolved CB-12085.
--
Resolution: Won't Fix

> FileReader#readAsArrayBuffer reads whole file
> -
>
> Key: CB-12085
> URL: https://issues.apache.org/jira/browse/CB-12085
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: cordova-plugin-file
>Affects Versions: 4.3.0
> Environment: Android
>Reporter: Damian Senn
>Assignee: Nikita Matrosov
>Priority: Critical
>  Labels: performance
>
> Reading a File with
> ```js
> let fr = new FileReader
> fr.onload = () => done(fs.result)
> fr.readAsArrayBuffer(blob)
> ```
> Is very slow, I'm assuming this is because it reads the whole file, then 
> transfers this via base64 to the JS world, where it is converted to an 
> ArrayBuffer. My use-case involves reading some media metadata in JS-World, 
> this usually involves reading several bytes (maybe around 100b to 1kb) of 2mb 
> to 50mb files.
> I noticed this by profiling via Chrome-DevTools where the most time is being 
> spent in the `atob` function in `cordova/base64.toArrayBuffer`.
> So parsing some hundreds of bytes on a 3mb file may take around 3 to 4 
> seconds on my Samsung Galaxy S4 and around 1 second on my Samsung Galaxy S6. 
> (This is without trying to read the actual metadata from the file).
> My guess is that this also has a very negative impact on memory usage and 
> garbage collection.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Comment Edited] (CB-12942) The cordova-plugin-file-transfer crashing on Windows 10

2017-06-22 Thread Nikita Matrosov (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-12942?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16059521#comment-16059521
 ] 

Nikita Matrosov edited comment on CB-12942 at 6/22/17 3:17 PM:
---

Is it duplicate of https://issues.apache.org/jira/browse/CB-12839?


was (Author: nikita matrosov):
Is it dup of https://issues.apache.org/jira/browse/CB-12839?

> The cordova-plugin-file-transfer crashing on Windows 10
> ---
>
> Key: CB-12942
> URL: https://issues.apache.org/jira/browse/CB-12942
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: cordova-plugin-file-transfer
>Affects Versions: cordova@7.0.0
> Environment: Node version: v6.9.5
> Cordova version: 7.0.1
> Config.xml file:
> 
>  xmlns="http://www.w3.org/ns/widgets"; 
> xmlns:cdv="http://cordova.apache.org/ns/1.0";>
> GHD VisiPass 1.2.30 UAT
> GHD VisiPass
>  href="http://ghd.com/";>nore...@ghd.com
> 
> 
> http://ionic.local/*"; />
> http://*/*"; />
> https://*/*"; />
> 
> 
> mailto:*"; />
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>  target="Square44x44Logo" />
>  target="Square70x70Logo" />
>  target="Square71x71Logo" />
>  target="Square150x150Logo" />
>  target="Square310x310Logo" />
>  src="resources/win/splash/Splashscreen-620x300.png" width="620" />
>  src="resources/win/splash/GHD_Logo_Splash_phone.png" width="1152" />
>  target="package.windows10.appxmanifest">
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>  spec="https://github.com/AzureAD/azure-activedirectory-library-for-cordova#a5fc862e870be9a34e07c2c75a0f2845895a7139";
>  />
> 
> 
> 
> 
> 
> 
> 
> Plugins:
> cordova-fs-plugin-fullscreen,cordova-plugin-camera,cordova-plugin-compat,cordova-plugin-console,cordova-plugin-device,cordova-plugin-file,cordova-plugin-file-transfer,cordova-plugin-media,cordova-plugin-media-capture,cordova-plugin-ms-adal,cordova-plugin-ms-adal-sso,cordova-plugin-network-information,cordova-plugin-splashscreen,cordova-plugin-statusbar,cordova-plugin-whitelist,ionic-plugin-keyboard,phonegap-plugin-barcodescanner
>Reporter: Matthew
>
> the plugin keeps crashing the app when a file is being uploaded.  This is on 
> Windows 10



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-12942) The cordova-plugin-file-transfer crashing on Windows 10

2017-06-22 Thread Nikita Matrosov (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-12942?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16059521#comment-16059521
 ] 

Nikita Matrosov commented on CB-12942:
--

Is it dup of https://issues.apache.org/jira/browse/CB-12839?

> The cordova-plugin-file-transfer crashing on Windows 10
> ---
>
> Key: CB-12942
> URL: https://issues.apache.org/jira/browse/CB-12942
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: cordova-plugin-file-transfer
>Affects Versions: cordova@7.0.0
> Environment: Node version: v6.9.5
> Cordova version: 7.0.1
> Config.xml file:
> 
>  xmlns="http://www.w3.org/ns/widgets"; 
> xmlns:cdv="http://cordova.apache.org/ns/1.0";>
> GHD VisiPass 1.2.30 UAT
> GHD VisiPass
>  href="http://ghd.com/";>nore...@ghd.com
> 
> 
> http://ionic.local/*"; />
> http://*/*"; />
> https://*/*"; />
> 
> 
> mailto:*"; />
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>  target="Square44x44Logo" />
>  target="Square70x70Logo" />
>  target="Square71x71Logo" />
>  target="Square150x150Logo" />
>  target="Square310x310Logo" />
>  src="resources/win/splash/Splashscreen-620x300.png" width="620" />
>  src="resources/win/splash/GHD_Logo_Splash_phone.png" width="1152" />
>  target="package.windows10.appxmanifest">
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>  spec="https://github.com/AzureAD/azure-activedirectory-library-for-cordova#a5fc862e870be9a34e07c2c75a0f2845895a7139";
>  />
> 
> 
> 
> 
> 
> 
> 
> Plugins:
> cordova-fs-plugin-fullscreen,cordova-plugin-camera,cordova-plugin-compat,cordova-plugin-console,cordova-plugin-device,cordova-plugin-file,cordova-plugin-file-transfer,cordova-plugin-media,cordova-plugin-media-capture,cordova-plugin-ms-adal,cordova-plugin-ms-adal-sso,cordova-plugin-network-information,cordova-plugin-splashscreen,cordova-plugin-statusbar,cordova-plugin-whitelist,ionic-plugin-keyboard,phonegap-plugin-barcodescanner
>Reporter: Matthew
>
> the plugin keeps crashing the app when a file is being uploaded.  This is on 
> Windows 10



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-12923) Native Dialog enters new line when pressing the enter key on Android

2017-06-22 Thread Nikita Matrosov (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-12923?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16059514#comment-16059514
 ] 

Nikita Matrosov commented on CB-12923:
--

[~ktran13], It seems to me that it's expected behavior since 
'setOnEditorAction' listener is not set to 'EditText', you can use buttons to 
handle user input 
(https://github.com/apache/cordova-plugin-dialogs#navigatornotificationprompt)

> Native Dialog enters new line when pressing the enter key on Android
> 
>
> Key: CB-12923
> URL: https://issues.apache.org/jira/browse/CB-12923
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: cordova-plugin-dialogs
>Reporter: Kristian Tran
>
> Steps to Reproduce:
> 1. Prompt the user to enter an input using the native dialog plugin
> Actual:
> When using the input prompt on Android, the input adds new lines when the 
> user presses "enter" on the keyboard.
> Expected:
> The input dialog closes when the user presses enter



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Updated] (CB-12944) Platform's spec is ignored in config.xml if package.json doesn't contain dependency for platform

2017-06-22 Thread Nikita Matrosov (JIRA)

 [ 
https://issues.apache.org/jira/browse/CB-12944?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nikita Matrosov updated CB-12944:
-
Description: 
Steps to reproduce with cordova@7.0.2-dev:

1) Create app with package.json contains empty dependencies object: 
"dependencies": {}
(e.g. it's default for Visual Studio Cordova template)
2) Add entry into config.xml: https://github.com/apache/cordova-windows.git#4.4.x"; />
3) cordova platform add windows

So, if package.json dependencies keys don't include windows or cordova-windows, 
we should look for a spec in config.xml.

  was:
Steps to reproduce with cordova@7.0.2-dev:

1) Create app with package.json contains empty dependencies object: 
"dependencies": {}
(e.g. it's default for Visual Studio Cordova template)
2) Add entry into config.xml: https://github.com/apache/cordova-windows.git#4.4.x"; />
3) cordova platform add windows

So, if package.json dependencies keys don't include windows orcordova-windows`, 
we should look for a spec in config.xml.


> Platform's spec is ignored in config.xml if package.json doesn't contain 
> dependency for platform
> 
>
> Key: CB-12944
> URL: https://issues.apache.org/jira/browse/CB-12944
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: cordova-lib
>Affects Versions: Master
>Reporter: Nikita Matrosov
>Assignee: Nikita Matrosov
>
> Steps to reproduce with cordova@7.0.2-dev:
> 1) Create app with package.json contains empty dependencies object: 
> "dependencies": {}
> (e.g. it's default for Visual Studio Cordova template)
> 2) Add entry into config.xml:  spec="https://github.com/apache/cordova-windows.git#4.4.x"; />
> 3) cordova platform add windows
> So, if package.json dependencies keys don't include windows or 
> cordova-windows, we should look for a spec in config.xml.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Created] (CB-12944) Platform's spec is ignored in config.xml if package.json doesn't contain dependency for platform

2017-06-22 Thread Nikita Matrosov (JIRA)
Nikita Matrosov created CB-12944:


 Summary: Platform's spec is ignored in config.xml if package.json 
doesn't contain dependency for platform
 Key: CB-12944
 URL: https://issues.apache.org/jira/browse/CB-12944
 Project: Apache Cordova
  Issue Type: Bug
  Components: cordova-lib
Affects Versions: Master
Reporter: Nikita Matrosov
Assignee: Nikita Matrosov


Steps to reproduce with cordova@7.0.2-dev:

1) Create app with package.json contains empty dependencies object: 
"dependencies": {}
(e.g. it's default for Visual Studio Cordova template)
2) Add entry into config.xml: https://github.com/apache/cordova-windows.git#4.4.x"; />
3) cordova platform add windows

So, if package.json dependencies keys don't include windows orcordova-windows`, 
we should look for a spec in config.xml.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Resolved] (CB-12671) Auto-test fails for stopping media that is in starting state

2017-06-22 Thread Nikita Matrosov (JIRA)

 [ 
https://issues.apache.org/jira/browse/CB-12671?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nikita Matrosov resolved CB-12671.
--
Resolution: Fixed

> Auto-test fails for stopping media that is in starting state
> 
>
> Key: CB-12671
> URL: https://issues.apache.org/jira/browse/CB-12671
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: cordova-plugin-media
>Affects Versions: 3.0.0
>Reporter: Nikita Matrosov
>Assignee: Nikita Matrosov
>  Labels: iOS
>
> Spec.27 fails



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Assigned] (CB-11968) add support to config.xml

2017-06-08 Thread Nikita Matrosov (JIRA)

 [ 
https://issues.apache.org/jira/browse/CB-11968?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nikita Matrosov reassigned CB-11968:


Assignee: Nikita Matrosov

> add  support to config.xml
> ---
>
> Key: CB-11968
> URL: https://issues.apache.org/jira/browse/CB-11968
> Project: Apache Cordova
>  Issue Type: New Feature
>  Components: cordova-lib
>Reporter: Steve Gill
>Assignee: Nikita Matrosov
>  Labels: cordova-8.0.0
>
> Need a way for users to add new settings to config files from config.xml. 
> Lets add  support to config.xml. Right now,  only 
> works in plugin.xml



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-12274) widget version number not copied from template config.xml file

2017-06-08 Thread Nikita Matrosov (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-12274?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16042474#comment-16042474
 ] 

Nikita Matrosov commented on CB-12274:
--

[~fedhat], it seems this is expected behavior (see comment 
https://github.com/apache/cordova-create/blob/master/index.js#L323).

> widget version number not copied from template config.xml file
> --
>
> Key: CB-12274
> URL: https://issues.apache.org/jira/browse/CB-12274
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: cordova-create
> Environment: Seen in iOS platform
>Reporter: Federico Hatoum
>  Labels: triaged
> Fix For: 6.3.1, 6.4.0
>
>
> When using the "--template" flag with the create command, the widget version 
> number in the template config.xml is not copied to the config.xml file within 
> the output directory. Instead, the version number defaults to "1.0.0". That 
> causes the resulting iOS IPA file to have its version number set to "1.0.0".
> This occurs in cordova versions greater than 6.2.0 (ex: 6.3.1, 6.4.0).
> The current workaround for builds that use template config.xml files is to 
> downgrade cordova to 6.2.0.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-12827) readAsText and readAsDataURL error

2017-06-07 Thread Nikita Matrosov (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-12827?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16040787#comment-16040787
 ] 

Nikita Matrosov commented on CB-12827:
--

[~MrShakes], you need to use {{cordova.file.cacheDirectory}} rather than 
{{cordova.file.cache}} (see docs 
https://github.com/apache/cordova-plugin-file#where-to-store-files)

> readAsText and readAsDataURL error
> --
>
> Key: CB-12827
> URL: https://issues.apache.org/jira/browse/CB-12827
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: cordova-plugin-file, Ionic
>Affects Versions: 6.4.0
> Environment: Android KitKat 4.4.2
>Reporter: Olabosipo Shoroye
>
> I'm using ngCordova cordova-plugin-file to try to read an image that I then 
> want to convert to bytes. I actually want to read it as dataURL and I'm 
> getting an error.
> /* The image is located at 
> file:///data/data/com.xxx.housekeeping/cache/tmp_Screenshot_2017-04-27-09-30-42-1816635709.png
>  on an Android device */
> `$cordovaFile.readAsText(cordova.file.cache, 
> "tmp_Screenshot_2017-04-27-09-30-421403920141.png")
>   .then(function (success) {
> // success
> console.log(success);
>   }, function (error) {
> // error
> console.log(error);
>   });`
> I tried using both readAsText and readAsDataURL but I get
> `Wrong type for parameter "uri" of resolveLocalFileSystemURI: Expected 
> String, but got Undefined.`
> as an error. This is on an Android device.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-12839) Cordova FileTansfer fails with error code 2 when uploading on Windows 10

2017-06-06 Thread Nikita Matrosov (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-12839?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16038887#comment-16038887
 ] 

Nikita Matrosov commented on CB-12839:
--

Brian, could you please also try to upload a file with another extension (e.g. 
.mp3) just in case? 

> Cordova FileTansfer fails with error code 2 when uploading on Windows 10
> 
>
> Key: CB-12839
> URL: https://issues.apache.org/jira/browse/CB-12839
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: cordova-plugin-file-transfer
>Affects Versions: cordova@7.0.0
> Environment: Windows 10 with Visual Studio 2015
>Reporter: Brian Watts
>Priority: Blocker
>  Labels: windows
> Attachments: Screen Shot 2017-06-05 at 10.59.34 AM.png, test2.zip
>
>
> I've been stuck on this for days.  I am pretty sure that it is a bug as I 
> have tried every possible combination of options in the upload call.  
> Furthermore, the same code works for iOS, Android, Windows Phone 8.1, Windows 
> Phone 10 and Windows Desktop 8.1. Windows Desktop 10 always fails with error 
> code 2 (syntax error).  I have also made tests with a minimal application 
> that just tests the upload function (plus a small portion that creates the 
> file to upload).
> {code}
> function upload_file() {
> var options = new FileUploadOptions();
> options.fileKey = "upfile";
> options.mimeType = 'm4a';
> var src = "ms-appdata:///temp/myalert.m4a";
> var ft = new FileTransfer(); 
> options.fileName = "myalert.m4a";
> options.chunkedMode = false;
> var server_name = "http://hp3.xpub.io";;
> ft.upload(src,server_name + "/alerts/upfile.php", upload_success, 
> upload_fail, options);
> }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-12839) Cordova FileTansfer fails with error code 2 when uploading on Windows 10

2017-06-06 Thread Nikita Matrosov (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-12839?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16038425#comment-16038425
 ] 

Nikita Matrosov commented on CB-12839:
--

[~bhwatts], sorry for the delay.

{quote}We are talking about Windows 10 – correct?{quote}
Yes
{quote} Cordova command line does not have the needed Windows 10 options {quote}
What Windows10 options do you mean?

Also, I tested your app using VS2017 rather than VS2015, but not sure it might 
cause uploading issue.
I guess this error 'A media source cannot go from the stopped state to the 
paused state.' causes empty file (I'll double-check it)

I'll try to create a test solution included some console.log which help us to 
figure out the problem.

> Cordova FileTansfer fails with error code 2 when uploading on Windows 10
> 
>
> Key: CB-12839
> URL: https://issues.apache.org/jira/browse/CB-12839
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: cordova-plugin-file-transfer
>Affects Versions: cordova@7.0.0
> Environment: Windows 10 with Visual Studio 2015
>Reporter: Brian Watts
>Priority: Blocker
>  Labels: windows
> Attachments: Screen Shot 2017-06-05 at 10.59.34 AM.png, test2.zip
>
>
> I've been stuck on this for days.  I am pretty sure that it is a bug as I 
> have tried every possible combination of options in the upload call.  
> Furthermore, the same code works for iOS, Android, Windows Phone 8.1, Windows 
> Phone 10 and Windows Desktop 8.1. Windows Desktop 10 always fails with error 
> code 2 (syntax error).  I have also made tests with a minimal application 
> that just tests the upload function (plus a small portion that creates the 
> file to upload).
> {code}
> function upload_file() {
> var options = new FileUploadOptions();
> options.fileKey = "upfile";
> options.mimeType = 'm4a';
> var src = "ms-appdata:///temp/myalert.m4a";
> var ft = new FileTransfer(); 
> options.fileName = "myalert.m4a";
> options.chunkedMode = false;
> var server_name = "http://hp3.xpub.io";;
> ft.upload(src,server_name + "/alerts/upfile.php", upload_success, 
> upload_fail, options);
> }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Resolved] (CB-12250) config-file plist entries not removed on plugin rm

2017-06-05 Thread Nikita Matrosov (JIRA)

 [ 
https://issues.apache.org/jira/browse/CB-12250?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nikita Matrosov resolved CB-12250.
--
Resolution: Fixed

> config-file plist  entries not removed on plugin rm
> --
>
> Key: CB-12250
> URL: https://issues.apache.org/jira/browse/CB-12250
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: cordova-lib
>Reporter: Sergey Shakhnazarov
>Assignee: Nikita Matrosov
>  Labels: ios, triaged
>
> 1. {{cordova plugin add cordova-plugin-ms-adal@0.8.1}}
> 2. {{cat platforms/ios/HelloCordova/HelloCordova-Info.plist}}
> ->
> {noformat}
> ...
> CFBundleURLTypes
> 
>   
> CFBundleTypeRole
> Editor
> CFBundleURLName
> $(CFBundleIdentifier)
> CFBundleURLSchemes
> 
>   x-msauth-$(CFBundleIdentifier:rfc1034identifier)
> 
>   
> {noformat}
> 3. {{cordova plugin rm ms-adal}}
> {{cat platforms/ios/HelloCordova/HelloCordova-Info.plist}}
> -> CFBundleURLTypes not removed
> 4. The array will be populated with another duplicating entry on next plugin 
> install.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Resolved] (CB-12409) Plugman is unable to uninstall a plugin with a config preferences containing '*'

2017-06-05 Thread Nikita Matrosov (JIRA)

 [ 
https://issues.apache.org/jira/browse/CB-12409?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nikita Matrosov resolved CB-12409.
--
Resolution: Fixed

> Plugman is unable to uninstall a plugin with a config preferences containing 
> '*'
> 
>
> Key: CB-12409
> URL: https://issues.apache.org/jira/browse/CB-12409
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: cordova-plugman
>Affects Versions: 1.4.1
> Environment: OS: MacOS
> $ plugman -version => 1.4.1
> $ cordova -version => 6.5.0
>Reporter: Kris Vandermast
>Assignee: Nikita Matrosov
>Priority: Minor
>
> A Cordova plugin we wrote uses a "group filter" which is injected into the 
> iOS app's plist file. The group filter can contain a "*" value, which is 
> default in the Plugin.xml 
> {code:title=Plugin.xml|borderStyle=solid}
> 
> 
>  ...
>   
> 
> 
>
>   GroupFilters
>   $GROUP_FILTERS
> 
> 
> {code}
> The installation behaves as expected, and the group filter can actually be 
> found in the plist file.
> {code}
> $ plugman install --platform ios --project ./platforms/ios/ --plugin  
> --variable GROUP_FILTERS="*" 
> Installing "" for ios
> {code}
> It is only when you try to uninstall the plugin, that an error occurs.
> {code}
> $ uninstall --platform ios --plugin  --project ./platforms/ios/
> Uninstalling  from ios
> Invalid regular expression: /^*$/: Nothing to repeat
> {code}
> Work-around: manually delete all the references from the Cordova project and 
> reinstall the plugin.
> Escaping the variable when passing it as parameter seems to work.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Resolved] (CB-12663) Cordova with dev version (6.5.1-dev) doesn't install latest version of plugin

2017-06-05 Thread Nikita Matrosov (JIRA)

 [ 
https://issues.apache.org/jira/browse/CB-12663?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nikita Matrosov resolved CB-12663.
--
   Resolution: Fixed
Fix Version/s: 7.0.1

> Cordova with dev version (6.5.1-dev) doesn't install latest version of plugin
> -
>
> Key: CB-12663
> URL: https://issues.apache.org/jira/browse/CB-12663
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: cordova-lib
>Affects Versions: 6.5.0
>Reporter: Nikita Matrosov
>Assignee: Nikita Matrosov
> Fix For: 7.0.1
>
>
> It's about plugins which have engine tag for verifying cordova version 
> (cordova-plugin-inappbrowser, cordova-plugin-ms-adal)



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-12867) cordova-compat dependent version is not match between latest released plugins

2017-06-05 Thread Nikita Matrosov (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-12867?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16036751#comment-16036751
 ] 

Nikita Matrosov commented on CB-12867:
--

[~yuukitada], most likely this bug was fixed with 
https://github.com/apache/cordova-lib/pull/554

> cordova-compat dependent version is not match between latest released plugins
> -
>
> Key: CB-12867
> URL: https://issues.apache.org/jira/browse/CB-12867
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: cordova-plugin-camera, cordova-plugin-compat, 
> cordova-plugin-contacts, cordova-plugin-file, cordova-plugin-geolocation, 
> cordova-plugin-media, cordova-plugin-media-capture
> Environment: android
>Reporter: Yuuki Tada
>Priority: Minor
>
> cordova-plugin-camera (2.3.1 and higher) is depending on 
> cordova-plugin-compat@1.*1*.x. However, many other plugins (such as media, 
> media-capture, geolocation, file, contacts) are depending on 
> cordova-plugin-compat@1.*0*.x as of now. This is causing an issue that 
> cordova-plugin-camera cannot be added to the project if the project already 
> has one of cordova-plugin-compat@1.*0*.x dependent plugins and vise versa.
> It might be better to depend on the same version of cordova-plugin-compat for 
> the next plugins release.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-12839) Cordova FileTansfer fails with error code 2 when uploading on Windows 10

2017-05-31 Thread Nikita Matrosov (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-12839?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16030923#comment-16030923
 ] 

Nikita Matrosov commented on CB-12839:
--

[~bhwatts], I've tried to reproduce this error using your sample project w/o 
success. Sporadically, I'm getting an error after audio file is being recorded: 
'A media source cannot go from the stopped state to the paused state.', not 
sure what's causing it, but anyway, the audio file is created and I can upload 
it.  Also, it seems to me that you forgot to add device capability to access 
microphone (w/o this capability I get the error: 'Access denied').

Could you please confirm that you don't get any information in error callback 
except for code?
Does this error reproduce if you run application w/o VS2015?

> Cordova FileTansfer fails with error code 2 when uploading on Windows 10
> 
>
> Key: CB-12839
> URL: https://issues.apache.org/jira/browse/CB-12839
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: cordova-plugin-file-transfer
>Affects Versions: cordova@7.0.0
> Environment: Windows 10 with Visual Studio 2015
>Reporter: Brian Watts
>Priority: Blocker
>  Labels: windows
> Attachments: test2.zip
>
>
> I've been stuck on this for days.  I am pretty sure that it is a bug as I 
> have tried every possible combination of options in the upload call.  
> Furthermore, the same code works for iOS, Android, Windows Phone 8.1, Windows 
> Phone 10 and Windows Desktop 8.1. Windows Desktop 10 always fails with error 
> code 2 (syntax error).  I have also made tests with a minimal application 
> that just tests the upload function (plus a small portion that creates the 
> file to upload).
> {code}
> function upload_file() {
> var options = new FileUploadOptions();
> options.fileKey = "upfile";
> options.mimeType = 'm4a';
> var src = "ms-appdata:///temp/myalert.m4a";
> var ft = new FileTransfer(); 
> options.fileName = "myalert.m4a";
> options.chunkedMode = false;
> var server_name = "http://hp3.xpub.io";;
> ft.upload(src,server_name + "/alerts/upfile.php", upload_success, 
> upload_fail, options);
> }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-12839) Cordova FileTansfer fails with error code 2 when uploading on Windows 10

2017-05-30 Thread Nikita Matrosov (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-12839?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16029459#comment-16029459
 ] 

Nikita Matrosov commented on CB-12839:
--

[~bhwatts], thanks for sharing a project, I'll take a look ASAP.

> Cordova FileTansfer fails with error code 2 when uploading on Windows 10
> 
>
> Key: CB-12839
> URL: https://issues.apache.org/jira/browse/CB-12839
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: cordova-plugin-file-transfer
>Affects Versions: cordova@7.0.0
> Environment: Windows 10 with Visual Studio 2015
>Reporter: Brian Watts
>Priority: Blocker
>  Labels: windows
> Attachments: test2.zip
>
>
> I've been stuck on this for days.  I am pretty sure that it is a bug as I 
> have tried every possible combination of options in the upload call.  
> Furthermore, the same code works for iOS, Android, Windows Phone 8.1, Windows 
> Phone 10 and Windows Desktop 8.1. Windows Desktop 10 always fails with error 
> code 2 (syntax error).  I have also made tests with a minimal application 
> that just tests the upload function (plus a small portion that creates the 
> file to upload).
> {code}
> function upload_file() {
> var options = new FileUploadOptions();
> options.fileKey = "upfile";
> options.mimeType = 'm4a';
> var src = "ms-appdata:///temp/myalert.m4a";
> var ft = new FileTransfer(); 
> options.fileName = "myalert.m4a";
> options.chunkedMode = false;
> var server_name = "http://hp3.xpub.io";;
> ft.upload(src,server_name + "/alerts/upfile.php", upload_success, 
> upload_fail, options);
> }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-12840) Can't uninstall local plugin installed with --link

2017-05-29 Thread Nikita Matrosov (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-12840?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16028245#comment-16028245
 ] 

Nikita Matrosov commented on CB-12840:
--

[~jcesarmobile], I've sent PR (https://github.com/apache/cordova-lib/pull/557) 
to fix it. 

> Can't uninstall local plugin installed with --link
> --
>
> Key: CB-12840
> URL: https://issues.apache.org/jira/browse/CB-12840
> Project: Apache Cordova
>  Issue Type: Bug
>Affects Versions: 7.0.1
>Reporter: jcesarmobile
>  Labels: reproduced, triage
>
> Steps to reproduce.
> 1. Clone barcode scanner plugin
> git clone https://github.com/phonegap/phonegap-plugin-barcodescanner/
> 2. Create a new cordova project
> cordova create barcodeTest es.test.barcode barcodeTest
> cd barcodeTest
> 3. Add the plugin
> cordova plugin add ../phonegap-plugin-barcodescanner/ --link
> 4. Remove the plugin
> cordova plugin rm phonegap-plugin-barcodescanner
> You will get
> Error: Plugin "phonegap-plugin-barcodescanner" is not present in the project. 
> See `cordova plugin list`.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-12839) Cordova FileTansfer fails with error code 2 when uploading on Windows 10

2017-05-29 Thread Nikita Matrosov (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-12839?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16028206#comment-16028206
 ] 

Nikita Matrosov commented on CB-12839:
--

Hi [~bhwatts], I couldn't reproduce this bug w/ your code. Could you please 
confirm that file {{myalert.m4a}} really exists in the  
{{\AppData\Local\Packages\\TempState}}? Also, it'd be 
helpful if you could get stack trace of this error (just run 
{{console.log(err.exception.asyncOpSource.stack)}} in your error callback 
{{upload_fail}}).

> Cordova FileTansfer fails with error code 2 when uploading on Windows 10
> 
>
> Key: CB-12839
> URL: https://issues.apache.org/jira/browse/CB-12839
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: cordova-plugin-file-transfer
>Affects Versions: cordova@7.0.0
> Environment: Windows 10 with Visual Studio 2015
>Reporter: Brian Watts
>Priority: Blocker
>  Labels: windows
>
> I've been stuck on this for days.  I am pretty sure that it is a bug as I 
> have tried every possible combination of options in the upload call.  
> Furthermore, the same code works for iOS, Android, Windows Phone 8.1, Windows 
> Phone 10 and Windows Desktop 8.1. Windows Desktop 10 always fails with error 
> code 2 (syntax error).  I have also made tests with a minimal application 
> that just tests the upload function (plus a small portion that creates the 
> file to upload).
> {code}
> function upload_file() {
> var options = new FileUploadOptions();
> options.fileKey = "upfile";
> options.mimeType = 'm4a';
> var src = "ms-appdata:///temp/myalert.m4a";
> var ft = new FileTransfer(); 
> options.fileName = "myalert.m4a";
> options.chunkedMode = false;
> var server_name = "http://hp3.xpub.io";;
> ft.upload(src,server_name + "/alerts/upfile.php", upload_success, 
> upload_fail, options);
> }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Comment Edited] (CB-12788) Crash on android when saving contact

2017-05-15 Thread Nikita Matrosov (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-12788?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16010593#comment-16010593
 ] 

Nikita Matrosov edited comment on CB-12788 at 5/15/17 2:21 PM:
---

[~eskan], does this bug reproduce if you pass {{rawId}} instead of {{id}} in 
{{create}} method?


was (Author: nikita matrosov):
[~eskan], does this bug reproduce if you pass {{rawId}} instead of {{id}} in 
{{save}} method?

> Crash on android when saving contact
> 
>
> Key: CB-12788
> URL: https://issues.apache.org/jira/browse/CB-12788
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: cordova-plugin-contacts
>Affects Versions: 2.3.1-dev
> Environment: Cordova : 6.1.1 via meteor
> Android : 5.0.1 on Samsung S4 GT-I9506
>Reporter: Cyrille Colin
>
> Hi,
> first i'm not sure about version, i use the one in npm and github : 2.3.1 but 
> it doesn't reflect version in issue tracker.
> Step to reproduce :
> var contact = navigator.contacts.create({
>   id: "12345",
>   displayName: "John Doe",
>   emails: [new ContactField('work', "j...@doe.com", true)]
> });
> contact.save(); crash with this stack trace :
> 05-11 15:18:58.643 24995-4607/fr.univlorraine.mobile.multi 
> D/ContactsAccessor: rawId is string called 'null'
> 05-11 15:18:58.643 24995-4607/fr.univlorraine.mobile.multi 
> D/ContactsAccessor: Could not get name
> 05-11 15:18:58.643 24995-4607/fr.univlorraine.mobile.multi 
> D/ContactsAccessor: Could not get phone numbers
> 05-11 15:18:58.643 24995-4607/fr.univlorraine.mobile.multi 
> D/ContactsAccessor: id is string called 'null'
> 05-11 15:18:58.643 24995-4607/fr.univlorraine.mobile.multi 
> D/ContactsAccessor: Could not get addresses
> 05-11 15:18:58.643 24995-4607/fr.univlorraine.mobile.multi 
> D/ContactsAccessor: Could not get organizations
> 05-11 15:18:58.643 24995-4607/fr.univlorraine.mobile.multi 
> D/ContactsAccessor: Could not get emails
> 05-11 15:18:58.643 24995-4607/fr.univlorraine.mobile.multi 
> D/ContactsAccessor: note is string called 'null'
> 05-11 15:18:58.643 24995-4607/fr.univlorraine.mobile.multi 
> D/ContactsAccessor: nickname is string called 'null'
> 05-11 15:18:58.643 24995-4607/fr.univlorraine.mobile.multi 
> D/ContactsAccessor: Could not get websites
> 05-11 15:18:58.643 24995-4607/fr.univlorraine.mobile.multi 
> E/ContactsAccessor: Could not get birthday from JSON object
>   
>  org.json.JSONException: Value null at birthday of type org.json.JSONObject$1 
> cannot be converted to long
>   
>  at org.json.JSON.typeMismatch(JSON.java:100)
>   
>  at org.json.JSONObject.getLong(JSONObject.java:517)
>   
>  at 
> org.apache.cordova.contacts.ContactAccessorSdk5.getBirthday(ContactAccessorSdk5.java:1959)
>   
>  at 
> org.apache.cordova.contacts.ContactAccessorSdk5.modifyContact(ContactAccessorSdk5.java:1471)
>   
>  at 
> org.apache.cordova.contacts.ContactAccessorSdk5.save(ContactAccessorSdk5.java:1071)
>   
>  at 
> org.apache.cordova.contacts.ContactManager$2.run(ContactManager.java:186)
>   
>  at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
>   
>  at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
>   
>  at java.lang.Thread.run(Thread.java:818)
> 05-11 15:18:58.653 24995-4607/fr.univlorraine.mobile.multi 
> D/ContactsAccessor: Could not get photos
> 05-11 15:18:58.713 24995-4607/fr.univlorraine.mobile.multi E/AndroidRuntime: 
> FATAL EXCEPTION: pool-1-thread-3
>  
> Process: fr.univlorraine.mobile.multi, PID: 24995
>  
> java.lang.NullPointerException: Attempt to invoke virtual method 'long 
> java.lang.Long.longValue()' on a null object reference
>   
>at android.os.Parcel.readException(Parcel.java:1546)
> 

[jira] [Commented] (CB-12788) Crash on android when saving contact

2017-05-15 Thread Nikita Matrosov (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-12788?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16010593#comment-16010593
 ] 

Nikita Matrosov commented on CB-12788:
--

[~eskan], does this bug reproduce if you pass {{rawId}} instead of {{id}} in 
{{save}} method?

> Crash on android when saving contact
> 
>
> Key: CB-12788
> URL: https://issues.apache.org/jira/browse/CB-12788
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: cordova-plugin-contacts
>Affects Versions: 2.3.1-dev
> Environment: Cordova : 6.1.1 via meteor
> Android : 5.0.1 on Samsung S4 GT-I9506
>Reporter: Cyrille Colin
>
> Hi,
> first i'm not sure about version, i use the one in npm and github : 2.3.1 but 
> it doesn't reflect version in issue tracker.
> Step to reproduce :
> var contact = navigator.contacts.create({
>   id: "12345",
>   displayName: "John Doe",
>   emails: [new ContactField('work', "j...@doe.com", true)]
> });
> contact.save(); crash with this stack trace :
> 05-11 15:18:58.643 24995-4607/fr.univlorraine.mobile.multi 
> D/ContactsAccessor: rawId is string called 'null'
> 05-11 15:18:58.643 24995-4607/fr.univlorraine.mobile.multi 
> D/ContactsAccessor: Could not get name
> 05-11 15:18:58.643 24995-4607/fr.univlorraine.mobile.multi 
> D/ContactsAccessor: Could not get phone numbers
> 05-11 15:18:58.643 24995-4607/fr.univlorraine.mobile.multi 
> D/ContactsAccessor: id is string called 'null'
> 05-11 15:18:58.643 24995-4607/fr.univlorraine.mobile.multi 
> D/ContactsAccessor: Could not get addresses
> 05-11 15:18:58.643 24995-4607/fr.univlorraine.mobile.multi 
> D/ContactsAccessor: Could not get organizations
> 05-11 15:18:58.643 24995-4607/fr.univlorraine.mobile.multi 
> D/ContactsAccessor: Could not get emails
> 05-11 15:18:58.643 24995-4607/fr.univlorraine.mobile.multi 
> D/ContactsAccessor: note is string called 'null'
> 05-11 15:18:58.643 24995-4607/fr.univlorraine.mobile.multi 
> D/ContactsAccessor: nickname is string called 'null'
> 05-11 15:18:58.643 24995-4607/fr.univlorraine.mobile.multi 
> D/ContactsAccessor: Could not get websites
> 05-11 15:18:58.643 24995-4607/fr.univlorraine.mobile.multi 
> E/ContactsAccessor: Could not get birthday from JSON object
>   
>  org.json.JSONException: Value null at birthday of type org.json.JSONObject$1 
> cannot be converted to long
>   
>  at org.json.JSON.typeMismatch(JSON.java:100)
>   
>  at org.json.JSONObject.getLong(JSONObject.java:517)
>   
>  at 
> org.apache.cordova.contacts.ContactAccessorSdk5.getBirthday(ContactAccessorSdk5.java:1959)
>   
>  at 
> org.apache.cordova.contacts.ContactAccessorSdk5.modifyContact(ContactAccessorSdk5.java:1471)
>   
>  at 
> org.apache.cordova.contacts.ContactAccessorSdk5.save(ContactAccessorSdk5.java:1071)
>   
>  at 
> org.apache.cordova.contacts.ContactManager$2.run(ContactManager.java:186)
>   
>  at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
>   
>  at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
>   
>  at java.lang.Thread.run(Thread.java:818)
> 05-11 15:18:58.653 24995-4607/fr.univlorraine.mobile.multi 
> D/ContactsAccessor: Could not get photos
> 05-11 15:18:58.713 24995-4607/fr.univlorraine.mobile.multi E/AndroidRuntime: 
> FATAL EXCEPTION: pool-1-thread-3
>  
> Process: fr.univlorraine.mobile.multi, PID: 24995
>  
> java.lang.NullPointerException: Attempt to invoke virtual method 'long 
> java.lang.Long.longValue()' on a null object reference
>   
>at android.os.Parcel.readException(Parcel.java:1546)
>   
>at 
> android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:185)
> 

[jira] [Created] (CB-12786) Improve logic for searching plugin id in case of module already exists in node_modules

2017-05-11 Thread Nikita Matrosov (JIRA)
Nikita Matrosov created CB-12786:


 Summary: Improve logic for searching plugin id in case of module 
already exists in node_modules
 Key: CB-12786
 URL: https://issues.apache.org/jira/browse/CB-12786
 Project: Apache Cordova
  Issue Type: Bug
  Components: cordova-fetch
Affects Versions: 1.1.0
 Environment:  cordova-7.0.2-dev
Reporter: Nikita Matrosov
Assignee: Nikita Matrosov


Steps to reproduce
There is the issue with searching plugin id if the module already exists in 
node_modules.

cordova create sample
cordova platform add android
cordova plugin add cordova-plugin-ms-adal
cordova plugin add ../azure-activedirectory-library-for-cordova (use local 
folder)

Get error message:
Error: Failed to get absolute path to installed module
This error occurs since folder name in node_modules (cordova-plugin-ms-adal) 
differs from base name of installation folder 
(azure-activedirectory-library-for-cordova).

PR: https://github.com/apache/cordova-lib/pull/555



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-12775) Length of paths are limited under windows

2017-05-11 Thread Nikita Matrosov (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-12775?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16006090#comment-16006090
 ] 

Nikita Matrosov commented on CB-12775:
--

[~flop], it's limitation of OS rather than a plugin. Since windows10 you can 
enable long paths using registry tweak. See 
https://msdn.microsoft.com/en-us/library/aa365247(v=vs.85).aspx

> Length of paths are limited under windows
> -
>
> Key: CB-12775
> URL: https://issues.apache.org/jira/browse/CB-12775
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: cordova-plugin-file
> Environment: Android 7.1.2 / iOS 10.3.1 / Windows 10.0 (Build 15063)
>Reporter: Florian Pechwitz
>
> There is no limit for the length of paths under iOS and Android, only on 
> Windows. I build a project to reproduce the behavior.
> The project tries to create recursivly directories until 10 subdirectories 
> are created. 
> Repro steps:
> 1. Download this cordova project (https://files.itizzimo.com/f/bd119941c9/)
> 2. Add windows platform
> 3. Execute the project and run the automated tests
> What happens:
> When the file path length hits the limit of 260 characters, the application 
> can't create anymore directories. The test fails.
> What should happen:
> All tests succeed.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-12676) App crashing in Samsung Galaxy s4

2017-04-20 Thread Nikita Matrosov (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-12676?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15976831#comment-15976831
 ] 

Nikita Matrosov commented on CB-12676:
--

AFAIK, it's common issue of Samsung Galaxy S4. I guess that Android OS kills 
your current activity due to lack of resources. 
Did you try to reboot device and clear cache of Camera app?

> App crashing in Samsung Galaxy s4
> -
>
> Key: CB-12676
> URL: https://issues.apache.org/jira/browse/CB-12676
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: Plugin Camera
>Affects Versions: 3.5.0
> Environment: ionic
>Reporter: sohan yadav
>
> https://forum.ionicframework.com/t/camera-app-crashing-in-samsung-galaxy-s4/86888
> http://stackoverflow.com/questions/43467307/ionic-camera-app-crashing-in-samsung-galaxy-s4



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-12526) cordova platform add browser incorrectly copies extra files

2017-04-19 Thread Nikita Matrosov (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-12526?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15974693#comment-15974693
 ] 

Nikita Matrosov commented on CB-12526:
--

[~stevegill], it seems to me that this line might be the cause of this bug: 
https://github.com/apache/cordova-browser/blame/master/bin/lib/create.js#L50. 
It copies content of this folder 
(https://github.com/apache/cordova-browser/tree/master/bin/templates/project/www)
 into app/platforms/browser. I don't see why this is necessary. 

> cordova platform add browser incorrectly copies extra files
> ---
>
> Key: CB-12526
> URL: https://issues.apache.org/jira/browse/CB-12526
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: Browser
>Reporter: Steve Gill
>
> Not sure what is going on
> Cordova platform add browser will add the browser platform.
> Go into myapp/platforms/browser and you will notice extra index.html, css, 
> img and js folders. They belong to the hello world cordova app. Your actual 
> app www gets copied into myapp/platforms/browser/www. So not sure why or 
> where these files are coming from. Maybe the create script in browser?



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-12085) FileReader#readAsArrayBuffer reads whole file

2017-04-19 Thread Nikita Matrosov (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-12085?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15974563#comment-15974563
 ] 

Nikita Matrosov commented on CB-12085:
--

[~topaxi], are you still experiencing this issue?

> FileReader#readAsArrayBuffer reads whole file
> -
>
> Key: CB-12085
> URL: https://issues.apache.org/jira/browse/CB-12085
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: Plugin File
>Affects Versions: 4.3.0
> Environment: Android
>Reporter: Damian Senn
>Assignee: Nikita Matrosov
>Priority: Critical
>  Labels: performance
>
> Reading a File with
> ```js
> let fr = new FileReader
> fr.onload = () => done(fs.result)
> fr.readAsArrayBuffer(blob)
> ```
> Is very slow, I'm assuming this is because it reads the whole file, then 
> transfers this via base64 to the JS world, where it is converted to an 
> ArrayBuffer. My use-case involves reading some media metadata in JS-World, 
> this usually involves reading several bytes (maybe around 100b to 1kb) of 2mb 
> to 50mb files.
> I noticed this by profiling via Chrome-DevTools where the most time is being 
> spent in the `atob` function in `cordova/base64.toArrayBuffer`.
> So parsing some hundreds of bytes on a 3mb file may take around 3 to 4 
> seconds on my Samsung Galaxy S4 and around 1 second on my Samsung Galaxy S6. 
> (This is without trying to read the actual metadata from the file).
> My guess is that this also has a very negative impact on memory usage and 
> garbage collection.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Resolved] (CB-12377) cordova platform update ios fails with "mv: no such file or directory"

2017-04-19 Thread Nikita Matrosov (JIRA)

 [ 
https://issues.apache.org/jira/browse/CB-12377?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nikita Matrosov resolved CB-12377.
--
Resolution: Fixed

> cordova platform update ios fails with  "mv: no such file or directory"
> ---
>
> Key: CB-12377
> URL: https://issues.apache.org/jira/browse/CB-12377
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: iOS
>Affects Versions: 4.3.1
>Reporter: Volker Braun
>Assignee: Nikita Matrosov
>
> The "cordova platform update ios" always fails. Looks like __PROJECT_NAME__ 
> should have been replaced with the actual project name, but was not. This is 
> with ios@4.3.1: 
> $ cordova --version
> 6.4.0
> $ rm -rf plugins platforms
> [...]
> $ cordova platform add ios
> [...]
> $ cordova platform update ios
> Updating ios project...
> mv: no such file or directory: 
> /Users/vbraun/myproject/cordova/platforms/ios/myproject.xcworkspace/xcshareddata/xcschemes/__PROJECT_NAME__.xcscheme



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Updated] (CB-12671) Auto-test fails for stopping media that is in starting state

2017-04-19 Thread Nikita Matrosov (JIRA)

 [ 
https://issues.apache.org/jira/browse/CB-12671?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nikita Matrosov updated CB-12671:
-
Labels: iOS  (was: )

> Auto-test fails for stopping media that is in starting state
> 
>
> Key: CB-12671
> URL: https://issues.apache.org/jira/browse/CB-12671
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: Plugin Media
>Affects Versions: 3.0.0
>Reporter: Nikita Matrosov
>Assignee: Nikita Matrosov
>  Labels: iOS
>
> Spec.27 fails



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Updated] (CB-12671) Auto-test fails for stopping media that is in starting state

2017-04-19 Thread Nikita Matrosov (JIRA)

 [ 
https://issues.apache.org/jira/browse/CB-12671?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nikita Matrosov updated CB-12671:
-
Description: Spec.27 fails

> Auto-test fails for stopping media that is in starting state
> 
>
> Key: CB-12671
> URL: https://issues.apache.org/jira/browse/CB-12671
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: Plugin Media
>Affects Versions: 3.0.0
>Reporter: Nikita Matrosov
>Assignee: Nikita Matrosov
>
> Spec.27 fails



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Created] (CB-12671) Auto-test fails for stopping media that is in starting state

2017-04-19 Thread Nikita Matrosov (JIRA)
Nikita Matrosov created CB-12671:


 Summary: Auto-test fails for stopping media that is in starting 
state
 Key: CB-12671
 URL: https://issues.apache.org/jira/browse/CB-12671
 Project: Apache Cordova
  Issue Type: Bug
  Components: Plugin Media
Affects Versions: 3.0.0
Reporter: Nikita Matrosov
Assignee: Nikita Matrosov






--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-12550) FileUtils.initialize(): NullPointerException

2017-04-19 Thread Nikita Matrosov (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-12550?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15974382#comment-15974382
 ] 

Nikita Matrosov commented on CB-12550:
--

[~VinceOPS], could you please provide minimal sample or code snippet where this 
bug reproduces?

> FileUtils.initialize(): NullPointerException
> 
>
> Key: CB-12550
> URL: https://issues.apache.org/jira/browse/CB-12550
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: Plugin File
>Affects Versions: 4.3.1
> Environment: Android 4.1 (Crosswalk)
>Reporter: Vincent Guilloux
>Priority: Critical
>  Labels: android, cordova-plugin-file, crash
>   Original Estimate: 10m
>  Remaining Estimate: 10m
>
> NullPointerException from the Crash Reports of Google Play Store.
> * Device:
> LG Optimus L9 (u2)
> * OS:
> Android 4.1 with CrossWalk (latest version to this date)
> * Line causing the issue: 
> https://github.com/apache/cordova-plugin-file/blob/master/src/android/FileUtils.java#L189
> * Code: 
> persistentRoot = activity.getFilesDir().getAbsolutePath() + "/files/";
> * Crash report:
> java.lang.RuntimeException: Unable to start activity 
> ComponentInfo{com.MYAPP.app/com.MYAPP.app.MainActivity}: 
> java.lang.NullPointerException
>   at 
> android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2070)
>   at 
> android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2095)
>   at android.app.ActivityThread.access$600(ActivityThread.java:135)
>   at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1201)
>   at android.os.Handler.dispatchMessage(Handler.java:99)
>   at android.os.Looper.loop(Looper.java:137)
>   at android.app.ActivityThread.main(ActivityThread.java:4849)
>   at java.lang.reflect.Method.invokeNative(Native Method)
>   at java.lang.reflect.Method.invoke(Method.java:511)
>   at 
> com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:795)
>   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:562)
>   at dalvik.system.NativeStart.main(Native Method)
> Caused by: java.lang.NullPointerException
>   at org.apache.cordova.file.FileUtils.initialize(FileUtils.java:189)
>   at 
> org.apache.cordova.CordovaPlugin.privateInitialize(CordovaPlugin.java:57)
>   at org.apache.cordova.PluginManager.getPlugin(PluginManager.java:171)
>   at 
> org.apache.cordova.PluginManager.startupPlugins(PluginManager.java:97)
>   at org.apache.cordova.PluginManager.init(PluginManager.java:86)
>   at 
> org.apache.cordova.CordovaWebViewImpl.init(CordovaWebViewImpl.java:115)
>   at org.apache.cordova.CordovaActivity.init(CordovaActivity.java:149)
>   at org.apache.cordova.CordovaActivity.loadUrl(CordovaActivity.java:224)
>   at com.MYAPP.app.MainActivity.onCreate(MainActivity.java:39)
>   at android.app.Activity.performCreate(Activity.java:5244)
>   at 
> android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1082)
>   at 
> android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2034)



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Updated] (CB-12667) Cordova-plugin-device-orientation plugin can not find orientation sensor on Samsung devices

2017-04-18 Thread Nikita Matrosov (JIRA)

 [ 
https://issues.apache.org/jira/browse/CB-12667?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nikita Matrosov updated CB-12667:
-
Summary: Cordova-plugin-device-orientation plugin can not  find orientation 
sensor on Samsung devices  (was: Cordova-plugin-device-orientation can not  
find orientation sensor on Samsung devices)

> Cordova-plugin-device-orientation plugin can not  find orientation sensor on 
> Samsung devices
> 
>
> Key: CB-12667
> URL: https://issues.apache.org/jira/browse/CB-12667
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: Plugin Device Orientation
>Affects Versions: Master
> Environment: cordova- 6.5.1-dev
> cordova-plugin-device-orientation - 1.0.6
>Reporter: Nikita Matrosov
>Assignee: Nikita Matrosov
>
> Device model: Samsung SM-G361H



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Updated] (CB-12667) Cordova-plugin-device-orientation can not find orientation sensor on Samsung devices

2017-04-18 Thread Nikita Matrosov (JIRA)

 [ 
https://issues.apache.org/jira/browse/CB-12667?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nikita Matrosov updated CB-12667:
-
Summary: Cordova-plugin-device-orientation can not  find orientation sensor 
on Samsung devices  (was: Cordova-plugin-device-orientation couldn't find 
orientation sensor on Samsung devices)

> Cordova-plugin-device-orientation can not  find orientation sensor on Samsung 
> devices
> -
>
> Key: CB-12667
> URL: https://issues.apache.org/jira/browse/CB-12667
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: Plugin Device Orientation
>Affects Versions: Master
> Environment: cordova- 6.5.1-dev
> cordova-plugin-device-orientation - 1.0.6
>Reporter: Nikita Matrosov
>Assignee: Nikita Matrosov
>
> Device model: Samsung SM-G361H



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Created] (CB-12667) Cordova-plugin-device-orientation couldn't find orientation sensor on Samsung devices

2017-04-18 Thread Nikita Matrosov (JIRA)
Nikita Matrosov created CB-12667:


 Summary: Cordova-plugin-device-orientation couldn't find 
orientation sensor on Samsung devices
 Key: CB-12667
 URL: https://issues.apache.org/jira/browse/CB-12667
 Project: Apache Cordova
  Issue Type: Bug
  Components: Plugin Device Orientation
Affects Versions: Master
 Environment: cordova- 6.5.1-dev
cordova-plugin-device-orientation - 1.0.6
Reporter: Nikita Matrosov
Assignee: Nikita Matrosov


Device model: Samsung SM-G361H



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Updated] (CB-12663) Cordova with dev version (6.5.1-dev) doesn't install latest version of plugin

2017-04-17 Thread Nikita Matrosov (JIRA)

 [ 
https://issues.apache.org/jira/browse/CB-12663?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nikita Matrosov updated CB-12663:
-
Description: 
It's about plugins which have engine tag for verifying cordova version 
(cordova-plugin-inappbrowser, cordova-plugin-ms-adal)
PR: https://github.com/apache/cordova-lib/pull/542

  was:It's about plugins which have engine tag for verifying cordova version 
(cordova-plugin-inappbrowser, cordova-plugin-ms-adal)


> Cordova with dev version (6.5.1-dev) doesn't install latest version of plugin
> -
>
> Key: CB-12663
> URL: https://issues.apache.org/jira/browse/CB-12663
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: cordova-lib
>Affects Versions: 6.5.0
>Reporter: Nikita Matrosov
>Assignee: Nikita Matrosov
>
> It's about plugins which have engine tag for verifying cordova version 
> (cordova-plugin-inappbrowser, cordova-plugin-ms-adal)
> PR: https://github.com/apache/cordova-lib/pull/542



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Updated] (CB-12663) Cordova with dev version (6.5.1-dev) doesn't install latest version of plugin

2017-04-17 Thread Nikita Matrosov (JIRA)

 [ 
https://issues.apache.org/jira/browse/CB-12663?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nikita Matrosov updated CB-12663:
-
Description: It's about plugins which have engine tag for verifying cordova 
version (cordova-plugin-inappbrowser, cordova-plugin-ms-adal)  (was: It's about 
plugin which have engine tag for verifying cordova version 
(cordova-plugin-inappbrowser, cordova-plugin-ms-adal))

> Cordova with dev version (6.5.1-dev) doesn't install latest version of plugin
> -
>
> Key: CB-12663
> URL: https://issues.apache.org/jira/browse/CB-12663
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: cordova-lib
>Affects Versions: 6.5.0
>Reporter: Nikita Matrosov
>Assignee: Nikita Matrosov
>
> It's about plugins which have engine tag for verifying cordova version 
> (cordova-plugin-inappbrowser, cordova-plugin-ms-adal)



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Updated] (CB-12663) Cordova with dev version (6.5.1-dev) doesn't install latest version of plugin

2017-04-17 Thread Nikita Matrosov (JIRA)

 [ 
https://issues.apache.org/jira/browse/CB-12663?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nikita Matrosov updated CB-12663:
-
Description: It's about plugins which have engine tag for verifying cordova 
version (cordova-plugin-inappbrowser, cordova-plugin-ms-adal)  (was: It's about 
plugins which have engine tag for verifying cordova version 
(cordova-plugin-inappbrowser, cordova-plugin-ms-adal)
PR: https://github.com/apache/cordova-lib/pull/542)

> Cordova with dev version (6.5.1-dev) doesn't install latest version of plugin
> -
>
> Key: CB-12663
> URL: https://issues.apache.org/jira/browse/CB-12663
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: cordova-lib
>Affects Versions: 6.5.0
>Reporter: Nikita Matrosov
>Assignee: Nikita Matrosov
>
> It's about plugins which have engine tag for verifying cordova version 
> (cordova-plugin-inappbrowser, cordova-plugin-ms-adal)



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Created] (CB-12663) Cordova with dev version (6.5.1-dev) doesn't install latest version of plugin

2017-04-17 Thread Nikita Matrosov (JIRA)
Nikita Matrosov created CB-12663:


 Summary: Cordova with dev version (6.5.1-dev) doesn't install 
latest version of plugin
 Key: CB-12663
 URL: https://issues.apache.org/jira/browse/CB-12663
 Project: Apache Cordova
  Issue Type: Bug
  Components: cordova-lib
Affects Versions: 6.5.0
Reporter: Nikita Matrosov
Assignee: Nikita Matrosov


It's about plugin which have engine tag for verifying cordova version 
(cordova-plugin-inappbrowser, cordova-plugin-ms-adal)



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Created] (CB-12650) Manual test for uploading image doesn't work

2017-04-12 Thread Nikita Matrosov (JIRA)
Nikita Matrosov created CB-12650:


 Summary: Manual test for uploading image doesn't work
 Key: CB-12650
 URL: https://issues.apache.org/jira/browse/CB-12650
 Project: Apache Cordova
  Issue Type: Bug
  Components: Plugin Camera
Affects Versions: 2.4.0
Reporter: Nikita Matrosov
Assignee: Nikita Matrosov
Priority: Minor


Dependency on cordova-plugin-file-transfer is missing in tests/plugin.xml



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-12464) InAppBrowser for browser does not work with X-Frame-Options: DENY

2017-04-07 Thread Nikita Matrosov (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-12464?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15960596#comment-15960596
 ] 

Nikita Matrosov commented on CB-12464:
--

[~joelrich], InAppBrowser plugin is implemented via iframe for browser 
platform. Could you please try to use {{_self}} as target for open URL (make 
sure that your URL is in white list).

> InAppBrowser for browser does not work with X-Frame-Options: DENY 
> --
>
> Key: CB-12464
> URL: https://issues.apache.org/jira/browse/CB-12464
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: Browser, Plugin InAppBrowser
>Reporter: Joel Richard
>
> I am using cordova-plugin-inappbrowser 1.6.1 for an OAuth login page. 
> Unfortunately, the login does not work with "phonegap serve" since it uses 
> X-Frame-Options: DENY.
> I see two possible solutions:
> 1) window.open instead of iframe
> 2) Load everything in the InAppBrowser through a proxy and remove such 
> headers (similar to the proxy which is used for CORS problems).



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-11822) StatusBar StatusBarOverlaysWebView Preferences is not read on launch

2017-04-06 Thread Nikita Matrosov (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-11822?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15959025#comment-15959025
 ] 

Nikita Matrosov commented on CB-11822:
--

[~ed-at-work], {{StatusBarOverlaysWebView}} setting is processing appropriately 
there - 
https://github.com/apache/cordova-plugin-statusbar/blob/master/src/ios/CDVStatusBar.m#L180-L186

> StatusBar StatusBarOverlaysWebView Preferences is not read on launch
> 
>
> Key: CB-11822
> URL: https://issues.apache.org/jira/browse/CB-11822
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: Plugin Statusbar
> Environment: iOS
>Reporter: Ed Ep
>
> When the app launches, it doesn't seem to take the boolean value in the 
> config.xml file and actually do anything with it?  I have a fix that I can 
> make a PR for on GitHub.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Comment Edited] (CB-12407) InAppBrowser object reference AND events lost

2017-04-05 Thread Nikita Matrosov (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-12407?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15956809#comment-15956809
 ] 

Nikita Matrosov edited comment on CB-12407 at 4/5/17 1:03 PM:
--

[~othon2000], does this bug reproduce with the following code?
{code:javascript}
  let blankBrowser = new InAppBrowser('https://someurl.com', '_blank', 
'location=no,zoom=no,hidden=no');
  blankBrowser.on('loadstart').subscribe(
event => {
  //some behavior
}
  );

  blankBrowser.on('loadstop').subscribe(
event => {
   let systemBrowser = new InAppBrowser('https://anotherurl.com', 
'_system', 'location=no,zoom=no,hidden=no');
}
  );
{code}


was (Author: nikita matrosov):
[~othon2000], does this bug reproduce with the following code:
{code:javascript}
  let blankBrowser = new InAppBrowser('https://someurl.com', '_blank', 
'location=no,zoom=no,hidden=no');
  blankBrowser.on('loadstart').subscribe(
event => {
  //some behavior
}
  );

  blankBrowser.on('loadstop').subscribe(
event => {
   let systemBrowser = new InAppBrowser('https://anotherurl.com', 
'_system', 'location=no,zoom=no,hidden=no');
}
  );
{code}

> InAppBrowser object reference AND events lost
> -
>
> Key: CB-12407
> URL: https://issues.apache.org/jira/browse/CB-12407
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: Plugin InAppBrowser
>Affects Versions: 6.4.0
> Environment: android (never tried other plaforms)
>Reporter: Othon Crelier
>
> If you have an instance of InAppBrowser, say, with target=_blank, and then 
> you create a new instance with target=_system, your original InAppBrowser 
> reference gets lost, and the events assigned to it stop working.
> {code:javascript}
>   let blankBrowser = new InAppBrowser('https://someurl.com', '_blank', 
> 'location=no,zoom=no,hidden=no');
>   blankBrowser.on('loadstart').subscribe(
> event => {
>   //some behavior
> }
>   );
>   let systemBrowser = new InAppBrowser('https://anotherurl.com', '_system', 
> 'location=no,zoom=no,hidden=no');
>   //bang! the events assigned to blankBrowser go away, and I cannot do 
> anything with the reference
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-12407) InAppBrowser object reference AND events lost

2017-04-05 Thread Nikita Matrosov (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-12407?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15956809#comment-15956809
 ] 

Nikita Matrosov commented on CB-12407:
--

[~othon2000], does this bug reproduce with the following code:
{code:javascript}
  let blankBrowser = new InAppBrowser('https://someurl.com', '_blank', 
'location=no,zoom=no,hidden=no');
  blankBrowser.on('loadstart').subscribe(
event => {
  //some behavior
}
  );

  blankBrowser.on('loadstop').subscribe(
event => {
   let systemBrowser = new InAppBrowser('https://anotherurl.com', 
'_system', 'location=no,zoom=no,hidden=no');
}
  );
{code}

> InAppBrowser object reference AND events lost
> -
>
> Key: CB-12407
> URL: https://issues.apache.org/jira/browse/CB-12407
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: Plugin InAppBrowser
>Affects Versions: 6.4.0
> Environment: android (never tried other plaforms)
>Reporter: Othon Crelier
>
> If you have an instance of InAppBrowser, say, with target=_blank, and then 
> you create a new instance with target=_system, your original InAppBrowser 
> reference gets lost, and the events assigned to it stop working.
> {code:javascript}
>   let blankBrowser = new InAppBrowser('https://someurl.com', '_blank', 
> 'location=no,zoom=no,hidden=no');
>   blankBrowser.on('loadstart').subscribe(
> event => {
>   //some behavior
> }
>   );
>   let systemBrowser = new InAppBrowser('https://anotherurl.com', '_system', 
> 'location=no,zoom=no,hidden=no');
>   //bang! the events assigned to blankBrowser go away, and I cannot do 
> anything with the reference
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Comment Edited] (CB-12632) Cordova Screen Orientation Plugin breaks disabling Android hardware back button

2017-04-04 Thread Nikita Matrosov (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-12632?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15955076#comment-15955076
 ] 

Nikita Matrosov edited comment on CB-12632 at 4/4/17 12:25 PM:
---

[~marck1991], I couldn't reproduce this bug
Could you please confirm that 'backbutton' handler is called by using this code:
{code:javascript}
document.addEventListener("backbutton", function(e) {
console.log("backbutton is fired");
e.preventDefault();
}, false);
{code}

Also it'd be helpful, if you provide some information about your device.


was (Author: nikita matrosov):
[~marck1991], couldn't reproduce this bug
Could you please confirm that 'backbutton' handler is called by using this code:
{code:javascript}
document.addEventListener("backbutton", function(e) {
console.log("backbutton is fired");
e.preventDefault();
}, false);
{code}

Also it'd be helpful, if you provide some information about your device.

> Cordova Screen Orientation Plugin breaks disabling Android hardware back 
> button 
> 
>
> Key: CB-12632
> URL: https://issues.apache.org/jira/browse/CB-12632
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: Android
> Environment: Android 5.1.1
>Reporter: Marc K.
>
> cordova-plugin-screen-orientation version 2.0.0 breaks disabling the Android 
> hardware backbutton by javascript code (for example: 
> document.addEventListener("backbutton", function(){}, false); ) . It seems 
> the code is simply ignored and the hardware backbutton works. Reverting to 
> version 1.4.2 solves the problem again and the javascript code does its job 
> so the hardware backbutton is disabled as expected.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-12632) Cordova Screen Orientation Plugin breaks disabling Android hardware back button

2017-04-04 Thread Nikita Matrosov (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-12632?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15955076#comment-15955076
 ] 

Nikita Matrosov commented on CB-12632:
--

[~marck1991], couldn't reproduce this bug
Could you please confirm that 'backbutton' handler is called by using this code:
{code:javascript}
document.addEventListener("backbutton", function(e) {
console.log("backbutton is fired");
e.preventDefault();
}, false);
{code}

Also it'd be helpful, if you provide some information about your device.

> Cordova Screen Orientation Plugin breaks disabling Android hardware back 
> button 
> 
>
> Key: CB-12632
> URL: https://issues.apache.org/jira/browse/CB-12632
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: Android
> Environment: Android 5.1.1
>Reporter: Marc K.
>
> cordova-plugin-screen-orientation version 2.0.0 breaks disabling the Android 
> hardware backbutton by javascript code (for example: 
> document.addEventListener("backbutton", function(){}, false); ) . It seems 
> the code is simply ignored and the hardware backbutton works. Reverting to 
> version 1.4.2 solves the problem again and the javascript code does its job 
> so the hardware backbutton is disabled as expected.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-12628) Capability declarations in config.xml are ignored for package.appxmanifest

2017-04-04 Thread Nikita Matrosov (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-12628?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15954984#comment-15954984
 ] 

Nikita Matrosov commented on CB-12628:
--

[~peterjuras], it seems to me that  for {{config.xml}} we've only supported 
{{edit-config}} to modify xml elements.
[~ktop500], could you please confirm?

> Capability declarations in config.xml are ignored for package.appxmanifest
> --
>
> Key: CB-12628
> URL: https://issues.apache.org/jira/browse/CB-12628
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: Windows
>Affects Versions: 6.5.0
> Environment: cordova@6.5.0, cordova-windows@5.0.0 (and below)
>Reporter: Peter Juras
>Assignee: Nikita Matrosov
>  Labels: windows
>
> Capability declarations for Windows (UAP 10.0 and others) are not merged into 
> the resulting package.appxmanifest files of the windows project.
> To reproduce:
> 1. cordova create windows-cat-test
> 2. Add the following entry to config.xml (this snippet would work in a 
> plugin.xml of a cordova plugin):
> "
> 
>   
> 
>   
> 
> "
> 3. cordova platform add windows
> => The privateNetworkClientServer Capability is not merged into any 
> package.appxmanifest



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Assigned] (CB-12628) Capability declarations in config.xml are ignored for package.appxmanifest

2017-04-04 Thread Nikita Matrosov (JIRA)

 [ 
https://issues.apache.org/jira/browse/CB-12628?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nikita Matrosov reassigned CB-12628:


Assignee: Nikita Matrosov

> Capability declarations in config.xml are ignored for package.appxmanifest
> --
>
> Key: CB-12628
> URL: https://issues.apache.org/jira/browse/CB-12628
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: Windows
>Affects Versions: 6.5.0
> Environment: cordova@6.5.0, cordova-windows@5.0.0 (and below)
>Reporter: Peter Juras
>Assignee: Nikita Matrosov
>  Labels: windows
>
> Capability declarations for Windows (UAP 10.0 and others) are not merged into 
> the resulting package.appxmanifest files of the windows project.
> To reproduce:
> 1. cordova create windows-cat-test
> 2. Add the following entry to config.xml (this snippet would work in a 
> plugin.xml of a cordova plugin):
> "
> 
>   
> 
>   
> 
> "
> 3. cordova platform add windows
> => The privateNetworkClientServer Capability is not merged into any 
> package.appxmanifest



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-11197) Android status bar appears when keyboard pops up.

2017-04-03 Thread Nikita Matrosov (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-11197?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15953467#comment-15953467
 ] 

Nikita Matrosov commented on CB-11197:
--

[~davidhooey], there are some things which you should fix in your project to 
get rid of this issue:
1. update plugin spec from '~2.1.3' to '^2.2.2',  otherwise you can't get this 
fix 
2. fix bug in your JS code 
(https://github.com/davidhooey/cb-11197/blob/master/www/js/index.js#L36), there 
isn't element with 'deviceready' id in your html code

[~kaynzw], could you please provide some information about your case ({{cordova 
plugin list && cordova platform list}}), also it'd very helpful if you could 
attach sample project where this bug reproduces.


> Android status bar appears when keyboard pops up.
> -
>
> Key: CB-11197
> URL: https://issues.apache.org/jira/browse/CB-11197
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: Plugin Statusbar
>Affects Versions: 2.1.0
> Environment: cordova 6.1.1
> cordova-plugin-console 1.0.2 "Console"
> cordova-plugin-device 1.1.0 "Device"
> cordova-plugin-file 3.0.0 "File"
> cordova-plugin-file-transfer 1.4.0 "File Transfer"
> cordova-plugin-statusbar 2.1.3 "StatusBar"
> cordova-plugin-whitelist 1.2.0 "Whitelist"
>Reporter: David Hooey
>  Labels: regression, triaged
> Attachments: NoStatusBar.png, 
> StatusBarShowsAfterKeyboardShowAndHide.png
>
>
> When configuring for full screen app, the statusbar will appear when the 
> keyboard pops up for input. The iOS build is fine. The previous version 
> {{cordova-plugin-statusbar 2.0.0}} does not exhibit this problem.
> {code}
> 
> 
> 
> {code}
> Also mentioned in this 
> [post|http://stackoverflow.com/questions/36156357/cordova-status-bar-plugin-doesnt-work-in-android-when-keyboard-pops-up].



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-12164) setStatusBarColor method lookup fails on Huawei device [android]

2017-04-03 Thread Nikita Matrosov (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-12164?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15953295#comment-15953295
 ] 

Nikita Matrosov commented on CB-12164:
--

Dup of  CB-12188

> setStatusBarColor method lookup fails on Huawei device [android]
> 
>
> Key: CB-12164
> URL: https://issues.apache.org/jira/browse/CB-12164
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: Plugin Statusbar
>Affects Versions: 2.2.0
> Environment: Huawei Honor 7
>Reporter: Rohan McGovern
>
> On a Huawei Honor 7, attempting to set status bar color will fail with log 
> message "StatusBar: Method window.setStatusBarColor not found for SDK level 
> 23".
> The problem seems to be here in StatusBar.java:
> {noformat}
> window.getClass().getDeclaredMethod("setStatusBarColor", 
> int.class).invoke(window, Color.parseColor(colorPref));
> {noformat}
> Because getDeclaredMethod is used here, it will only look up methods declared 
> on the window's class, and not any superclasses.
> Therefore it doesn't work on this device, where the window is of type 
> com.android.internal.policy.HwPhoneWindow while the method belongs to 
> superclass com.android.internal.policy.PhoneWindow.
> Replacing getDeclaredMethod with getMethod fixes the problem.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-12596) cannot use cordova-plugin-file-transfer due to types issue

2017-03-31 Thread Nikita Matrosov (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-12596?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15951060#comment-15951060
 ] 

Nikita Matrosov commented on CB-12596:
--

[~jmilloy], it'd be very helpful if you could provide your tsconfig.json file.

> cannot use cordova-plugin-file-transfer due to types issue
> --
>
> Key: CB-12596
> URL: https://issues.apache.org/jira/browse/CB-12596
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: Ionic
>Affects Versions: 6.4.0, 6.5.0
> Environment: {noformat}
> Installed platforms:
>   android 6.1.2
> {noformat}
> {noformat}
> cordova-plugin-app-event 1.2.0 "Application Events"
> cordova-plugin-app-version 0.1.9 "AppVersion"
> cordova-plugin-buildinfo 1.1.0 "BuildInfo"
> cordova-plugin-compat 1.1.0 "Compat"
> cordova-plugin-console 1.0.5 "Console"
> cordova-plugin-crosswalk-webview 2.3.0 "Crosswalk WebView Engine"
> cordova-plugin-device 1.1.4 "Device"
> cordova-plugin-file 4.3.2 "File"
> cordova-plugin-file-opener2 2.0.8 "File Opener2"
> cordova-plugin-file-transfer 1.6.2 "File Transfer"
> cordova-plugin-screen-orientation 1.4.2 "Screen Orientation"
> cordova-plugin-splashscreen 4.0.1 "Splashscreen"
> cordova-plugin-whitelist 1.3.1 "Whitelist"
> de.appplant.cordova.plugin.local-notification 0.8.4 "LocalNotification"
> ionic-plugin-keyboard 2.2.1 "Keyboard"
> {noformat}
>Reporter: Jeffrey Milloy
>  Labels: plugin-file, plugin-file-transfer, typescript, typings
>   Original Estimate: 0.5h
>  Remaining Estimate: 0.5h
>
> I am using Ionic 2 (2.2.1). Building the app with {{ionic-app-scripts build}} 
> fails during transpile with this error:
> {noformat}
> typescript: plugins/cordova-plugin-file-transfer/types/index.d.ts, line: 
> Cannot find type definition file for 'cordova-plugin-file':
>  L8:  * @param serverURL of the server to receive the file, as 
> encoded by 
>  L9:  * @param successCallback   A callback that is passed a FileUploadResult 
> L10:  * @param errorCallback A callback that executes if an error occurs 
> retrieving the FileUploadResult.
> {noformat}
> So the file transfer plugin is completely unusable. The build transpiles 
> without errors if I simply deleted line 9 of 
> {{cordova-plugin-file-transfer/types/index.d.ts}}
> {code}
> /// 
> {code}
> My typescript version is {{typescript@2.0.10}}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Comment Edited] (CB-9953) cordova platform check working very poorly

2017-03-31 Thread Nikita Matrosov (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-9953?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15950776#comment-15950776
 ] 

Nikita Matrosov edited comment on CB-9953 at 3/31/17 12:24 PM:
---

[~shazron] , it seems that {code:none}cordova platform check{code} doesn't work 
on windows OS (with any platform) if project isn't on the disk where temporary 
folder is located. `updateWww` method is the cause of this problem that try to 
get relative path using locations with different drive letters 
(https://github.com/apache/cordova-ios/blob/b8ae88d822135a149ff1ea7b6e5feb045a2220eb/bin/templates/scripts/cordova/lib/prepare.js#L148)
 and then use it in join method 
(https://github.com/apache/cordova-lib/blob/master/cordova-common/src/FileUpdater.js#L289).

But on OSX and Linux this command should work. I guess, that there might be 
problem with permissions. [~shawnlan], [~Sujan12], [~cfjedimaster], could you 
please run the following command (for OSX) {code:none}pwd && whoami && echo 
$TMPDIR{code} and post output here. Does this problem persist if you change 
temporary location using the following command? (for OSX) {code:none} export 
TMPDIR=/tmp {code}


was (Author: nikita matrosov):
[~shazron] , it seems that `cordova platform check` doesn't work on windows OS 
(with any platform) if project isn't on the disk where temporary folder is 
located. `updateWww` method is the cause of this problem that try to get 
relative path using locations with different drive letters 
(https://github.com/apache/cordova-ios/blob/b8ae88d822135a149ff1ea7b6e5feb045a2220eb/bin/templates/scripts/cordova/lib/prepare.js#L148)
 and then use it in join method 
(https://github.com/apache/cordova-lib/blob/master/cordova-common/src/FileUpdater.js#L289).

But on OSX and Linux this command should work. I guess, that there might be 
problem with permissions. [~shawnlan], [~Sujan12], [~cfjedimaster], could you 
please run the following command (for OSX) {code:none}pwd && whoami && echo 
$TMPDIR{code} and post output here. Does this problem persist if you change 
temporary location using the following command? (for OSX) {code:none} export 
TMPDIR=/tmp {code}

> cordova platform check working very poorly
> --
>
> Key: CB-9953
> URL: https://issues.apache.org/jira/browse/CB-9953
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: CLI
>Reporter: Raymond Camden
>Priority: Minor
>
> I've tested cordova platform check now in about 4 different projects and not 
> once was it able to tell me that iOS had a version newer than the one I was 
> using. For example, I get this:
> ios @ 3.9.1; current did not install, and thus its version cannot be 
> determined



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-9953) cordova platform check working very poorly

2017-03-31 Thread Nikita Matrosov (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-9953?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15950776#comment-15950776
 ] 

Nikita Matrosov commented on CB-9953:
-

[~shazron] , it seems that `cordova platform check` doesn't work on windows OS 
(with any platform) if project isn't on the disk where temporary folder is 
located. `updateWww` method is the cause of this problem that try to get 
relative path using locations with different drive letters 
(https://github.com/apache/cordova-ios/blob/b8ae88d822135a149ff1ea7b6e5feb045a2220eb/bin/templates/scripts/cordova/lib/prepare.js#L148)
 and then use it in join method 
(https://github.com/apache/cordova-lib/blob/master/cordova-common/src/FileUpdater.js#L289).

But on OSX and Linux this command should work. I guess, that there might be 
problem with permissions. [~shawnlan], [~Sujan12], [~cfjedimaster], could you 
please run the following command (for OSX) {code:none}pwd && whoami && echo 
$TMPDIR{code} and post output here. Does this problem persist if you change 
temporary location using the following command? (for OSX) {code:none} export 
TMPDIR=/tmp {code}

> cordova platform check working very poorly
> --
>
> Key: CB-9953
> URL: https://issues.apache.org/jira/browse/CB-9953
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: CLI
>Reporter: Raymond Camden
>Priority: Minor
>
> I've tested cordova platform check now in about 4 different projects and not 
> once was it able to tell me that iOS had a version newer than the one I was 
> using. For example, I get this:
> ios @ 3.9.1; current did not install, and thus its version cannot be 
> determined



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Assigned] (CB-12576) "cordova platform check" doesn't work

2017-03-30 Thread Nikita Matrosov (JIRA)

 [ 
https://issues.apache.org/jira/browse/CB-12576?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nikita Matrosov reassigned CB-12576:


Assignee: Nikita Matrosov

> "cordova platform check" doesn't work
> -
>
> Key: CB-12576
> URL: https://issues.apache.org/jira/browse/CB-12576
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: CLI
>Affects Versions: 6.5.0
> Environment: OSX
>Reporter: Shawn Lan
>Assignee: Nikita Matrosov
>
> cordova -v = 6.5.0
> cordova platform ls:
> Installed platforms:
> android 6.1.2
> ios 4.3.1
> cordova platform check:
> Subproject Path: CordovaLib
> ios @ 4.3.1; current did not install, and thus its version cannot be 
> determined
> cp: no such file or directory: 
> /var/folders/wm/xyqns5v17zz0jyfhh9bpy_bmgp/T/cordova-platform-check-1489627520595/platforms/ios/HelloC
> ordova/.gitignore
> grep: no such file or directory: 
> /var/folders/wm/xyqns5v17zz0jyfhh9bpy_bmgp/T/cordova-platform-check-1489627520595/platforms/ios/Hell
> oCordova.xcodeproj/project.pbxproj
> sed: no such file or directory: 
> /var/folders/wm/xyqns5v17zz0jyfhh9bpy_bmgp/T/cordova-platform-check-1489627520595/platforms/ios/Hello
> Cordova.xcodeproj/project.pbxproj
> Error: Entry not found in project file for sub-project: 
> CordovaLib/CordovaLib.xcodeproj



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Assigned] (CB-12250) config-file plist entries not removed on plugin rm

2017-03-01 Thread Nikita Matrosov (JIRA)

 [ 
https://issues.apache.org/jira/browse/CB-12250?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nikita Matrosov reassigned CB-12250:


Assignee: Nikita Matrosov

> config-file plist  entries not removed on plugin rm
> --
>
> Key: CB-12250
> URL: https://issues.apache.org/jira/browse/CB-12250
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: CordovaLib
>Reporter: Sergey Shakhnazarov
>Assignee: Nikita Matrosov
>  Labels: ios, triaged
>
> 1. {{cordova plugin add cordova-plugin-ms-adal@0.8.1}}
> 2. {{cat platforms/ios/HelloCordova/HelloCordova-Info.plist}}
> ->
> {noformat}
> ...
> CFBundleURLTypes
> 
>   
> CFBundleTypeRole
> Editor
> CFBundleURLName
> $(CFBundleIdentifier)
> CFBundleURLSchemes
> 
>   x-msauth-$(CFBundleIdentifier:rfc1034identifier)
> 
>   
> {noformat}
> 3. {{cordova plugin rm ms-adal}}
> {{cat platforms/ios/HelloCordova/HelloCordova-Info.plist}}
> -> CFBundleURLTypes not removed
> 4. The array will be populated with another duplicating entry on next plugin 
> install.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Resolved] (CB-11028) Android version of the contacts plugin behaves differently for Contact Detail "type"

2017-03-01 Thread Nikita Matrosov (JIRA)

 [ 
https://issues.apache.org/jira/browse/CB-11028?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nikita Matrosov resolved CB-11028.
--
   Resolution: Fixed
Fix Version/s: 2.2.1

> Android version of the contacts plugin behaves differently for Contact Detail 
> "type"
> 
>
> Key: CB-11028
> URL: https://issues.apache.org/jira/browse/CB-11028
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: Plugin Contacts
>Reporter: Tobias Mücksch
>Assignee: Nikita Matrosov
>  Labels: Android, triaged
> Fix For: 2.2.1
>
>
> After inspecting the code for the android version of the plugin, I found out, 
> that for some reason the coders decided to return { ..., type: "custom", ... 
> } for contact details with custom labels. But the iOS Version returns the 
> actual custom label as type.
> Example:
> *iOS:*
> {code:javascript}
> {
> name: [ ... ],
> phoneNumbers: [{
> id: 1337,
> type: "My super fancy label",
> value: "+41 45654 214654"
> }]
> }
> {code}
> *Android:*
> {code:javascript}
> {
> name: [ ... ],
> phoneNumbers: [{
> id: 1337,
> type: "custom", // WHAT THE HECK?
> value: "+41 45654 214654"
> }]
> }
> {code}
> This behaviour is not exclusive to phoneNumbers. It's the same for all 
> ContactDetails.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Resolved] (CB-12112) moveFolder function in UWP fails for folder trees with depth greater than 1

2017-03-01 Thread Nikita Matrosov (JIRA)

 [ 
https://issues.apache.org/jira/browse/CB-12112?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nikita Matrosov resolved CB-12112.
--
   Resolution: Fixed
Fix Version/s: 4.3.1

> moveFolder function in UWP fails for folder trees with depth greater than 1
> ---
>
> Key: CB-12112
> URL: https://issues.apache.org/jira/browse/CB-12112
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: Plugin File, Windows
>Affects Versions: 3.5.0
> Environment: Universal windows
>Reporter: Chris Redhead
>Assignee: Nikita Matrosov
>Priority: Minor
>  Labels: reproduced, triaged
> Fix For: 4.3.1
>
>
> The moveFolder function works incorrectly in UWP for folder trees with depth 
> greater than 1. 
> The recursion does not work as expected so all files and folders end up in 
> the new directory



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Assigned] (CB-12409) Plugman is unable to uninstall a plugin with a config preferences containing '*'

2017-02-28 Thread Nikita Matrosov (JIRA)

 [ 
https://issues.apache.org/jira/browse/CB-12409?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nikita Matrosov reassigned CB-12409:


Assignee: Nikita Matrosov

> Plugman is unable to uninstall a plugin with a config preferences containing 
> '*'
> 
>
> Key: CB-12409
> URL: https://issues.apache.org/jira/browse/CB-12409
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: Plugman
>Affects Versions: 1.4.1
> Environment: OS: MacOS
> $ plugman -version => 1.4.1
> $ cordova -version => 6.5.0
>Reporter: Kris Vandermast
>Assignee: Nikita Matrosov
>Priority: Minor
>
> A Cordova plugin we wrote uses a "group filter" which is injected into the 
> iOS app's plist file. The group filter can contain a "*" value, which is 
> default in the Plugin.xml 
> {code:title=Plugin.xml|borderStyle=solid}
> 
> 
>  ...
>   
> 
> 
>
>   GroupFilters
>   $GROUP_FILTERS
> 
> 
> {code}
> The installation behaves as expected, and the group filter can actually be 
> found in the plist file.
> {code}
> $ plugman install --platform ios --project ./platforms/ios/ --plugin  
> --variable GROUP_FILTERS="*" 
> Installing "" for ios
> {code}
> It is only when you try to uninstall the plugin, that an error occurs.
> {code}
> $ uninstall --platform ios --plugin  --project ./platforms/ios/
> Uninstalling  from ios
> Invalid regular expression: /^*$/: Nothing to repeat
> {code}
> Work-around: manually delete all the references from the Cordova project and 
> reinstall the plugin.
> Escaping the variable when passing it as parameter seems to work.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Updated] (CB-12377) cordova platform update ios fails with "mv: no such file or directory"

2017-02-28 Thread Nikita Matrosov (JIRA)

 [ 
https://issues.apache.org/jira/browse/CB-12377?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nikita Matrosov updated CB-12377:
-
Affects Version/s: (was: 6.4.0)
   4.3.1

> cordova platform update ios fails with  "mv: no such file or directory"
> ---
>
> Key: CB-12377
> URL: https://issues.apache.org/jira/browse/CB-12377
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: iOS
>Affects Versions: 4.3.1
>Reporter: Volker Braun
>Assignee: Nikita Matrosov
>
> The "cordova platform update ios" always fails. Looks like __PROJECT_NAME__ 
> should have been replaced with the actual project name, but was not. This is 
> with ios@4.3.1: 
> $ cordova --version
> 6.4.0
> $ rm -rf plugins platforms
> [...]
> $ cordova platform add ios
> [...]
> $ cordova platform update ios
> Updating ios project...
> mv: no such file or directory: 
> /Users/vbraun/myproject/cordova/platforms/ios/myproject.xcworkspace/xcshareddata/xcschemes/__PROJECT_NAME__.xcscheme



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Updated] (CB-12377) cordova platform update ios fails with "mv: no such file or directory"

2017-02-28 Thread Nikita Matrosov (JIRA)

 [ 
https://issues.apache.org/jira/browse/CB-12377?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nikita Matrosov updated CB-12377:
-
Component/s: (was: CordovaLib)
 iOS

> cordova platform update ios fails with  "mv: no such file or directory"
> ---
>
> Key: CB-12377
> URL: https://issues.apache.org/jira/browse/CB-12377
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: iOS
>Affects Versions: 6.4.0
>Reporter: Volker Braun
>Assignee: Nikita Matrosov
>
> The "cordova platform update ios" always fails. Looks like __PROJECT_NAME__ 
> should have been replaced with the actual project name, but was not. This is 
> with ios@4.3.1: 
> $ cordova --version
> 6.4.0
> $ rm -rf plugins platforms
> [...]
> $ cordova platform add ios
> [...]
> $ cordova platform update ios
> Updating ios project...
> mv: no such file or directory: 
> /Users/vbraun/myproject/cordova/platforms/ios/myproject.xcworkspace/xcshareddata/xcschemes/__PROJECT_NAME__.xcscheme



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Assigned] (CB-12377) cordova platform update ios fails with "mv: no such file or directory"

2017-02-28 Thread Nikita Matrosov (JIRA)

 [ 
https://issues.apache.org/jira/browse/CB-12377?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nikita Matrosov reassigned CB-12377:


Assignee: Nikita Matrosov

> cordova platform update ios fails with  "mv: no such file or directory"
> ---
>
> Key: CB-12377
> URL: https://issues.apache.org/jira/browse/CB-12377
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: CordovaLib
>Affects Versions: 6.4.0
>Reporter: Volker Braun
>Assignee: Nikita Matrosov
>
> The "cordova platform update ios" always fails. Looks like __PROJECT_NAME__ 
> should have been replaced with the actual project name, but was not. This is 
> with ios@4.3.1: 
> $ cordova --version
> 6.4.0
> $ rm -rf plugins platforms
> [...]
> $ cordova platform add ios
> [...]
> $ cordova platform update ios
> Updating ios project...
> mv: no such file or directory: 
> /Users/vbraun/myproject/cordova/platforms/ios/myproject.xcworkspace/xcshareddata/xcschemes/__PROJECT_NAME__.xcscheme



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-12442) npm install -g cordova fails

2017-02-28 Thread Nikita Matrosov (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-12442?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15887508#comment-15887508
 ] 

Nikita Matrosov commented on CB-12442:
--

[~bms1], could you please try to run the following commands:
npm uninstall -g cordova
npm install -g cordova

> npm install -g cordova  fails
> -
>
> Key: CB-12442
> URL: https://issues.apache.org/jira/browse/CB-12442
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: CLI
> Environment: windows 7 home premium
>Reporter: Bill Morgan
>Priority: Blocker
>
> npm install -g cordova fails on Windows...
> recently installed nodejs (upgrade)
> npm ERR! Windows_NT 6.1.7601
> npm ERR! argv "C:\\Program Files (x86)\\nodejs\\node.exe" "C:\\Program Files 
> (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "cordova"
> npm ERR! node v6.9.5
> npm ERR! npm  v3.10.10
> npm ERR! path 
> C:\Users\Bill\AppData\Roaming\npm\node_modules\.staging\abbrev-8e8eafc3
> npm ERR! code ENOENT
> npm ERR! errno -4058
> npm ERR! syscall rename



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Comment Edited] (CB-12492) plugin.xml edit-config not working for attributes on manifest/application

2017-02-27 Thread Nikita Matrosov (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-12492?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15887475#comment-15887475
 ] 

Nikita Matrosov edited comment on CB-12492 at 2/28/17 7:53 AM:
---

Matthias, it seems that you are using `edit-file` rather than `edit-config` tag 
in `plugin.xml` to add new attributes. Could you please recheck it?


was (Author: nikita matrosov):
@Matthias, It seems that you are using `edit-file` rather than `edit-config` 
tag in `plugin.xml` to add new attributes. Could you please recheck it?

> plugin.xml edit-config not working for attributes on manifest/application
> -
>
> Key: CB-12492
> URL: https://issues.apache.org/jira/browse/CB-12492
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: Android, CordovaCommon
>Affects Versions: 2.0.0
>Reporter: Matthias
>
> h3. Environment
> Cordova: 6.5.0
> CordovaCommon: 2.0.0
> CordovaAndroid: 6.1.2
> h3. Description
> Using the edit-config in a plugin.xml to add an additional attribute on the 
> manifest or application tag in AndroidManifest.xml does not work.
> h3. Steps to reproduce
> - Create new cordova project with android platform
> - (Copy initial AndroidManifest.xml for comparison)
> - Add cordova plugin which uses the edit-config setting to add a new 
> attribute to manifest or application tag
> - Compare updated AndroidManifist.xml and see attribute was not added
> h3. Expectation
> Edit-config setting in plugin.xml allows to add/alter as well attributes on 
> manifest/application/... level in AndroidManifest.xml
> 
> h3. Example
> This will work
> {code:xml}
>  mode="merge">
> 
> 
> {code}
> This will *NOT* work
> {code:xml}
> 
> http://schemas.android.com/tools";>
> 
>  mode="merge">
> 
> 
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-12492) plugin.xml edit-config not working for attributes on manifest/application

2017-02-27 Thread Nikita Matrosov (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-12492?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15887475#comment-15887475
 ] 

Nikita Matrosov commented on CB-12492:
--

@Matthias, It seems that you are using `edit-file` rather than `edit-config` 
tag in `plugin.xml` to add new attributes. Could you please recheck it?

> plugin.xml edit-config not working for attributes on manifest/application
> -
>
> Key: CB-12492
> URL: https://issues.apache.org/jira/browse/CB-12492
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: Android, CordovaCommon
>Affects Versions: 2.0.0
>Reporter: Matthias
>
> h3. Environment
> Cordova: 6.5.0
> CordovaCommon: 2.0.0
> CordovaAndroid: 6.1.2
> h3. Description
> Using the edit-config in a plugin.xml to add an additional attribute on the 
> manifest or application tag in AndroidManifest.xml does not work.
> h3. Steps to reproduce
> - Create new cordova project with android platform
> - (Copy initial AndroidManifest.xml for comparison)
> - Add cordova plugin which uses the edit-config setting to add a new 
> attribute to manifest or application tag
> - Compare updated AndroidManifist.xml and see attribute was not added
> h3. Expectation
> Edit-config setting in plugin.xml allows to add/alter as well attributes on 
> manifest/application/... level in AndroidManifest.xml
> 
> h3. Example
> This will work
> {code:xml}
>  mode="merge">
> 
> 
> {code}
> This will *NOT* work
> {code:xml}
> 
> http://schemas.android.com/tools";>
> 
>  mode="merge">
> 
> 
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Closed] (CB-12142) Move windows-specific logic from cordova-common to cordova-windows

2017-02-09 Thread Nikita Matrosov (JIRA)

 [ 
https://issues.apache.org/jira/browse/CB-12142?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nikita Matrosov closed CB-12142.

Resolution: Implemented

> Move windows-specific logic from cordova-common to cordova-windows
> --
>
> Key: CB-12142
> URL: https://issues.apache.org/jira/browse/CB-12142
> Project: Apache Cordova
>  Issue Type: Improvement
>  Components: Windows
>Affects Versions: Master
>Reporter: Nikita Matrosov
>Assignee: Nikita Matrosov
>Priority: Minor
>  Labels: performance, windows
>
> Cordova-common contains windows-specific logic. This logic is associated with 
> demuxing 'package.appxmanifest' into relevant platform-specific appx 
> manifests.  We should move it to cordova-windows. Cordova-windows will 
> continue to work w/ current cordova-common.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-12438) Adding android platform gives the error : "Error: Error validating package name. Package name must look like: com.company.Name"

2017-02-09 Thread Nikita Matrosov (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-12438?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15859537#comment-15859537
 ] 

Nikita Matrosov commented on CB-12438:
--

[~sruthakeerthik], cordova-android validates your package name on matching with 
regular expression:
{code:javascript}
 /^[a-zA-Z][a-zA-Z0-9_]+(\.[a-zA-Z][a-zA-Z0-9_]*)+$/.
{code}  
Could you please provide what package name are you using?

> Adding android platform gives the error : "Error: Error validating package 
> name. Package name must look like: com.company.Name"
> ---
>
> Key: CB-12438
> URL: https://issues.apache.org/jira/browse/CB-12438
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: CLI
>Affects Versions: 6.4.0
> Environment: MAC and LINUX. 
>Reporter: Srutha Keerthi
> Fix For: 6.4.0
>
>
> The version of cordova is '6.5.0' on running 'cordova --version'
> On installing the latest cordova using 'npm install -g cordova', creating a 
> blank cordova app and then trying to add platforms, on running 'cordova 
> platform add android' the following error occurs : < package name. Package name must look like: com.company.Name>>.
> Windows and ios get added without any errors. This occurs only with the 
> latest installation of cordova. 



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-12389) Cordova can not find Android Build Tools on Ubuntu 16.04

2017-02-09 Thread Nikita Matrosov (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-12389?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15859514#comment-15859514
 ] 

Nikita Matrosov commented on CB-12389:
--

[~Amir Karimi], it seems that your environment variable 'ANDROID_HOME' doesn't 
point out android-sdk folder. Could you please check whether 
'/home/amir/applications/android' directory contains 'build-tools'?

> Cordova can not find Android Build Tools on Ubuntu 16.04
> 
>
> Key: CB-12389
> URL: https://issues.apache.org/jira/browse/CB-12389
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: Android
> Environment: Ubunto 16.04
>Reporter: Amir Karimi
>
> Hi, I am try to install Cordova after 3 months on new version of Ubuntu 
> (16.04) but it got error and can not find android build tools. all 
> environmets is set for my user and also root user and test it to echo all 
> variables...
> but it got error yet... i search every where and do not find solution for 
> this issus. please help me.
> i also test ionic and this got error same this to find android build tools...
> Error log:
> cordova build
> ANDROID_HOME=/home/amir/applications/android
> JAVA_HOME=/usr/local/java/jdk1.8.0_122
> Subproject Path: CordovaLib
> Starting a new Gradle Daemon for this build (subsequent builds will be 
> faster).
> Download 
> https://jcenter.bintray.com/com/android/tools/build/gradle/2.2.1/gradle-2.2.1.pom
> Download 
> https://jcenter.bintray.com/com/android/tools/build/gradle-core/2.2.1/gradle-core-2.2.1.pom
> Download 
> https://jcenter.bintray.com/com/android/tools/build/builder/2.2.1/builder-2.2.1.pom
> Download 
> https://jcenter.bintray.com/com/android/tools/lint/lint/25.2.1/lint-25.2.1.pom
> Download 
> https://repo1.maven.org/maven2/com/android/tools/build/transform-api/2.0.0-deprecated-use-gradle-api/transform-api-2.0.0-deprecated-use-gradle-api.pom
> Download 
> https://jcenter.bintray.com/com/android/tools/build/gradle-api/2.2.1/gradle-api-2.2.1.pom
> Download 
> https://jcenter.bintray.com/com/android/databinding/compilerCommon/2.2.1/compilerCommon-2.2.1.pom
> Download https://repo1.maven.org/maven2/org/ow2/asm/asm/5.0.4/asm-5.0.4.pom
> Download 
> https://repo1.maven.org/maven2/org/ow2/asm/asm-parent/5.0.4/asm-parent-5.0.4.pom
> Download https://repo1.maven.org/maven2/org/ow2/ow2/1.3/ow2-1.3.pom
> Download 
> https://repo1.maven.org/maven2/org/ow2/asm/asm-commons/5.0.4/asm-commons-5.0.4.pom
> Download 
> https://repo1.maven.org/maven2/net/sf/proguard/proguard-gradle/5.2.1/proguard-gradle-5.2.1.pom
> Download 
> https://repo1.maven.org/maven2/net/sf/proguard/proguard-parent/5.2.1/proguard-parent-5.2.1.pom
> Download 
> https://repo1.maven.org/maven2/org/jacoco/org.jacoco.core/0.7.5.201505241946/org.jacoco.core-0.7.5.201505241946.pom
> Download 
> https://repo1.maven.org/maven2/org/jacoco/org.jacoco.build/0.7.5.201505241946/org.jacoco.build-0.7.5.201505241946.pom
> Download 
> https://repo1.maven.org/maven2/org/jacoco/org.jacoco.report/0.7.5.201505241946/org.jacoco.report-0.7.5.201505241946.pom
> Download 
> https://repo1.maven.org/maven2/net/sf/jopt-simple/jopt-simple/4.9/jopt-simple-4.9.pom
> Download 
> https://repo1.maven.org/maven2/org/sonatype/oss/oss-parent/7/oss-parent-7.pom
> Download 
> https://repo1.maven.org/maven2/com/google/protobuf/protobuf-java/2.5.0/protobuf-java-2.5.0.pom
> Download https://repo1.maven.org/maven2/com/google/google/1/google-1.pom
> Download https://repo1.maven.org/maven2/org/antlr/antlr/3.5.2/antlr-3.5.2.pom
> Download 
> https://repo1.maven.org/maven2/org/antlr/antlr-master/3.5.2/antlr-master-3.5.2.pom
> Download 
> https://repo1.maven.org/maven2/org/sonatype/oss/oss-parent/9/oss-parent-9.pom
> Download 
> https://jcenter.bintray.com/com/android/tools/build/builder-model/2.2.1/builder-model-2.2.1.pom
> Download 
> https://jcenter.bintray.com/com/android/tools/build/builder-test-api/2.2.1/builder-test-api-2.2.1.pom
> Download 
> https://jcenter.bintray.com/com/android/tools/sdklib/25.2.1/sdklib-25.2.1.pom
> Download 
> https://jcenter.bintray.com/com/android/tools/sdk-common/25.2.1/sdk-common-25.2.1.pom
> Download 
> https://jcenter.bintray.com/com/android/tools/common/25.2.1/common-25.2.1.pom
> Download 
> https://jcenter.bintray.com/com/android/tools/build/manifest-merger/25.2.1/manifest-merger-25.2.1.pom
> Download 
> https://jcenter.bintray.com/com/android/tools/ddms/ddmlib/25.2.1/ddmlib-25.2.1.pom
> Download 
> https://repo1.maven.org/maven2/com/android/tools/jack/jack-api/0.11.0/jack-api-0.11.0.pom
> Download 
> https://repo1.maven.org/maven2/com/android/tools/jill/jill-api/0.10.0/jill-api-0.10.0.pom
> Download 
> https://jcenter.bintray.com/com/android/tools/analytics-library/protos/25.2.1/protos-25.2.1.pom
> Download 
> https://jcenter.bintray.com/com/android/tools/analytics-libra

[jira] [Commented] (CB-12085) FileReader#readAsArrayBuffer reads whole file

2016-11-21 Thread Nikita Matrosov (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-12085?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15683432#comment-15683432
 ] 

Nikita Matrosov commented on CB-12085:
--

FileReader in fact reads file in chunked mode (256Kb by default 
(https://github.com/apache/cordova-plugin-file/blob/815c2b1bfe578ee9a9b0f998a906087aca379cd1/www/FileReader.js#L52)),
 not the whole file at once. However, it also does some transcoding data -> 
Base64 -> Uint8Array -> data, which sounds excessive but in fact is a feature 
of platform and JS-to-native bridge implementation.

Some experiments show that changing this to avoid intermediate base64 
encoding/decoding and pass JSON array through bridge in fact slows read 
operations down even more (~1.5 times), so i think window.atob is not the worst 
thing here.

As a workaround, to reduce amount of data to pass through bridge I think you 
can read only the data range that you really need. You can either use 
'File.slice' function (See 
https://developer.mozilla.org/en-US/docs/Web/API/Blob/slice) and then create 
and use a FileReader for sliced file (for 1 Kb of data it takes 20-40 ms to 
read, instead 2000-3000 for the whole 3Mb file), or just specify 'start' and 
'end' properties of the file instance (which is basically the same and gives 
the same result).

> FileReader#readAsArrayBuffer reads whole file
> -
>
> Key: CB-12085
> URL: https://issues.apache.org/jira/browse/CB-12085
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: Plugin File
>Affects Versions: 4.3.0
> Environment: Android
>Reporter: Damian Senn
>Assignee: Nikita Matrosov
>Priority: Critical
>  Labels: performance
>
> Reading a File with
> ```js
> let fr = new FileReader
> fr.onload = () => done(fs.result)
> fr.readAsArrayBuffer(blob)
> ```
> Is very slow, I'm assuming this is because it reads the whole file, then 
> transfers this via base64 to the JS world, where it is converted to an 
> ArrayBuffer. My use-case involves reading some media metadata in JS-World, 
> this usually involves reading several bytes (maybe around 100b to 1kb) of 2mb 
> to 50mb files.
> I noticed this by profiling via Chrome-DevTools where the most time is being 
> spent in the `atob` function in `cordova/base64.toArrayBuffer`.
> So parsing some hundreds of bytes on a 3mb file may take around 3 to 4 
> seconds on my Samsung Galaxy S4 and around 1 second on my Samsung Galaxy S6. 
> (This is without trying to read the actual metadata from the file).
> My guess is that this also has a very negative impact on memory usage and 
> garbage collection.



--
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-12142) Move windows-specific logic from cordova-common to cordova-windows

2016-11-14 Thread Nikita Matrosov (JIRA)
Nikita Matrosov created CB-12142:


 Summary: Move windows-specific logic from cordova-common to 
cordova-windows
 Key: CB-12142
 URL: https://issues.apache.org/jira/browse/CB-12142
 Project: Apache Cordova
  Issue Type: Improvement
  Components: Windows
Affects Versions: Master
Reporter: Nikita Matrosov
Assignee: Nikita Matrosov
Priority: Minor


Cordova-common contains windows-specific logic. This logic is associated with 
demuxing 'package.appxmanifest' into relevant platform-specific appx manifests. 
 We should move it to cordova-windows. Cordova-windows will continue to work w/ 
current cordova-common.



--
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] [Assigned] (CB-11933) [windows] uap: not added on plugin add

2016-10-17 Thread Nikita Matrosov (JIRA)

 [ 
https://issues.apache.org/jira/browse/CB-11933?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nikita Matrosov reassigned CB-11933:


Assignee: Nikita Matrosov

> [windows] uap: not added on plugin add
> --
>
> Key: CB-11933
> URL: https://issues.apache.org/jira/browse/CB-11933
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: Windows
>Reporter: Sergey Shakhnazarov
>Assignee: Nikita Matrosov
>
> {noformat}
> cordova create test
> cd test
> cordova platform add https://github.com/apache/cordova-windows
> cordova plugin add 
> https://github.com/AzureAD/azure-activedirectory-library-for-cordova
> cordova plugin add plugins\cordova-plugin-ms-adal\src\windows\sso\
> type platforms\windows\package.windows10.appxmanifest
> {noformat}
> ->
> {noformat}
> 
> 
> 
> 
> 
> 
> {noformat}
> {{cordova prepare}}
> {noformat}
> type platforms\windows\package.windows10.appxmanifest
> {noformat}
> {noformat}
> 
> 
> 
> 
> 
> 
> {noformat}
> {{cordova plugin rm cordova-plugin-ms-adal-sso}}
> {noformat}
> type platforms\windows\package.windows10.appxmanifest
> {noformat}
> {noformat}
> 
> 
> 
> 
> 
> {noformat}
> 1. uap: prefixes not being added on plugin add
> 2. cordova prepare fixes this
> 3. plugin rm does not remove added capabilities as they have been changed
> cordova-plugin-ms-adal-sso plugin.xml:
> {noformat}
> 
> 
> 
> 
>  parent="/Package/Capabilities" device-target="windows">
> 
> 
> 
> 
> 
> {noformat}



--
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] [Assigned] (CB-11951) Plugin preference default value is not being saved to .json

2016-10-12 Thread Nikita Matrosov (JIRA)

 [ 
https://issues.apache.org/jira/browse/CB-11951?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nikita Matrosov reassigned CB-11951:


Assignee: Nikita Matrosov

> Plugin preference default value is not being saved to .json
> -
>
> Key: CB-11951
> URL: https://issues.apache.org/jira/browse/CB-11951
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: CLI, CordovaLib
>Affects Versions: 6.3.1
> Environment: Windows 10 with anniversary update
>Reporter: Alexander Sorokin
>Assignee: Nikita Matrosov
>
> Plugin preference default value is not being saved to .json
> {noformat}
> cordova create foo
> cd foo
> cordova platform add android
> cordova plugin add cordova-plugin-ms-azure-mobile-engagement --variable 
> AZME_ANDROID_CONNECTION_STRING=Endpoint=0;AppId=0;SdkKey=0 --variable 
> AZME_ENABLE_PLUGIN_LOG=false
> {noformat}
> check out `./platforms/android/android.json` or `./pluguns/android.json`
> it has the following lines:
> {code}
> "installed_plugins": {
> <...>
> "cordova-plugin-ms-azure-mobile-engagement": {
> "AZME_ENABLE_PLUGIN_LOG": "false",
> "AZME_ANDROID_GOOGLE_PROJECT_NUMBER": "null",
> "AZME_ANDROID_REACH_ICON": "icon",
> "AZME_ANDROID_CONNECTION_STRING": "Endpoint=0;AppId=0;SdkKey=0",
> "PACKAGE_NAME": "io.cordova.hellocordova"
> }
> },
> {code}
> You can see that "AZME_ENABLE_PLUGIN_LOG" is saved here, while 
> "AZME_ENABLE_NATIVE_LOG" is not.
> They both can be found in the plugin section of the  plugin's `plugin.xml` 
> file:
> https://github.com/Azure/azure-mobile-engagement-cordova/blob/master/plugin.xml#L29
> Note that the Android-specific preferences have been saved correctly.
> cordova@6.3.0 doesn't have this issue.



--
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] [Assigned] (CB-11641) MediaError object missing message member

2016-09-26 Thread Nikita Matrosov (JIRA)

 [ 
https://issues.apache.org/jira/browse/CB-11641?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nikita Matrosov reassigned CB-11641:


Assignee: Nikita Matrosov

> MediaError object missing message member
> 
>
> Key: CB-11641
> URL: https://issues.apache.org/jira/browse/CB-11641
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: Plugin Media
>Affects Versions: 2.3.0
> Environment: Building on OSX 10.11.5, Android 5.1.1 and 5.2.0
>Reporter: Madison Dickson
>Assignee: Nikita Matrosov
>Priority: Minor
>
> on iOS, the MediaError object contains both the error code and the message. 
> On Android, the object is missing the message.
> {code}
> new Media(this.src,
> // success callback
> successCallback,
> // error callback
> function(err) {
> console.log("recordAudio():Audio Error Code: "+ err.code + ", "+ 
> err.message, err);
> if(app.file){
> app.file.release();
> app.file = null;
> // app.stop();
> }
> }
> {code}
> outputs: {{recordAudio():Audio Error Code: 0, undefined}}
> I have seen both error code 0 and error code 1, the former of which is not 
> documented. 
> https://cordova.apache.org/docs/en/latest/reference/cordova-plugin-media/index.html#mediaerror



--
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] [Assigned] (CB-11028) Android version of the contacts plugin behaves differently for Contact Detail "type"

2016-09-26 Thread Nikita Matrosov (JIRA)

 [ 
https://issues.apache.org/jira/browse/CB-11028?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nikita Matrosov reassigned CB-11028:


Assignee: Nikita Matrosov

> Android version of the contacts plugin behaves differently for Contact Detail 
> "type"
> 
>
> Key: CB-11028
> URL: https://issues.apache.org/jira/browse/CB-11028
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: Plugin Contacts
>Reporter: Tobias Mücksch
>Assignee: Nikita Matrosov
>  Labels: Android, triaged
>
> After inspecting the code for the android version of the plugin, I found out, 
> that for some reason the coders decided to return { ..., type: "custom", ... 
> } for contact details with custom labels. But the iOS Version returns the 
> actual custom label as type.
> Example:
> *iOS:*
> {code:javascript}
> {
> name: [ ... ],
> phoneNumbers: [{
> id: 1337,
> type: "My super fancy label",
> value: "+41 45654 214654"
> }]
> }
> {code}
> *Android:*
> {code:javascript}
> {
> name: [ ... ],
> phoneNumbers: [{
> id: 1337,
> type: "custom", // WHAT THE HECK?
> value: "+41 45654 214654"
> }]
> }
> {code}
> This behaviour is not exclusive to phoneNumbers. It's the same for all 
> ContactDetails.



--
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] [Assigned] (CB-11350) Find with 'desiredFields' returns a field as null

2016-09-26 Thread Nikita Matrosov (JIRA)

 [ 
https://issues.apache.org/jira/browse/CB-11350?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nikita Matrosov reassigned CB-11350:


Assignee: Nikita Matrosov

> Find with 'desiredFields' returns a field as null
> -
>
> Key: CB-11350
> URL: https://issues.apache.org/jira/browse/CB-11350
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: Plugin Contacts
> Environment: LG G4, Android 6
>Reporter: Maria Ines Parnisari
>Assignee: Nikita Matrosov
>Priority: Minor
>  Labels: triaged
>
> Full repro here: https://github.com/miparnisari/ionic-demo
> When you run navigator.contacts.find() with the option 'desiredFields' set 
> including 'displayName', this particular field returns as null for all 
> contacts. However, if you do not set this option, the field is populated 
> properly for each contact.
> Also, it is unclear to me why when you use 'desiredFields' a full-blown 
> object is returned for each contact with almost every field set as null. 
> Wouldn't it make more sense to just return objects with those fields?



--
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] [Assigned] (CB-11694) hardwareback value persists across usages

2016-09-26 Thread Nikita Matrosov (JIRA)

 [ 
https://issues.apache.org/jira/browse/CB-11694?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nikita Matrosov reassigned CB-11694:


Assignee: Nikita Matrosov

> hardwareback value persists across usages
> -
>
> Key: CB-11694
> URL: https://issues.apache.org/jira/browse/CB-11694
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: Plugin InAppBrowser
>Affects Versions: 1.4.0
>Reporter: Jacob Weber
>Assignee: Nikita Matrosov
>Priority: Minor
>  Labels: Android, android, triaged
>
> 1. Open an InAppBrowser without passing hardwareback. It will use the default 
> value ("yes"), so the hardware Back button will take you back in history.
> 2. Open an InAppBrowser and pass hardwareback=no. The hardware Back button 
> will close the browser.
> 3. Open an InAppBrowser without passing hardwareback. It will now use the 
> previous value ("no"), so the hardware Back button will take you back in 
> history. It should go back to the default value ("yes").



--
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] [Assigned] (CB-11693) THREAD WARNING: ['File'] took '4534.373047' ms. Plugin should use a background thread.

2016-08-16 Thread Nikita Matrosov (JIRA)

 [ 
https://issues.apache.org/jira/browse/CB-11693?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nikita Matrosov reassigned CB-11693:


Assignee: Nikita Matrosov

> THREAD WARNING: ['File'] took '4534.373047' ms. Plugin should use a 
> background thread.
> --
>
> Key: CB-11693
> URL: https://issues.apache.org/jira/browse/CB-11693
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: Plugin File
>Affects Versions: 4.2.0
>Reporter: Richard Hua
>Assignee: Nikita Matrosov
>  Labels: easyfix, performance
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> Full details and a fix is here: 
> https://github.com/Microsoft/cordova-plugin-code-push/issues/156



--
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] [Assigned] (CB-11529) setVolume is not working in iOS device.

2016-08-12 Thread Nikita Matrosov (JIRA)

 [ 
https://issues.apache.org/jira/browse/CB-11529?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nikita Matrosov reassigned CB-11529:


Assignee: Nikita Matrosov

> setVolume is not working in iOS device.
> ---
>
> Key: CB-11529
> URL: https://issues.apache.org/jira/browse/CB-11529
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: Plugin Media
>Affects Versions: 2.3.0
> Environment: iOS
>Reporter: Rajkumar
>Assignee: Nikita Matrosov
>
> setVolume in cordova media plugin works fine in android devices but in iOS 
> setVolume has no effect at all. I couldn't find anything in the docs which 
> says it won't work in iOS, So I am not sure whether it is the expected 
> behavior. The logs from xcode reveal nothing. Here is the section of log 
> http://pastebin.com/SgsjzuYc.
> Issue I am facing is similar to the one posted earlier : 
> https://groups.google.com/forum/#!topic/phonegap/sxsqoLnz8l4
> The app was tested in iPhone 5c running iOS 9.3 and iPhone 5s
> Works fine in Nexus 6 running 6.0.0



--
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] [Assigned] (CB-11214) prompt() defaultText on Android sets placeholder text instead of default text

2016-08-12 Thread Nikita Matrosov (JIRA)

 [ 
https://issues.apache.org/jira/browse/CB-11214?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nikita Matrosov reassigned CB-11214:


Assignee: Nikita Matrosov

> prompt() defaultText on Android sets placeholder text instead of default text
> -
>
> Key: CB-11214
> URL: https://issues.apache.org/jira/browse/CB-11214
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: Plugin Dialogs
> Environment: Android
>Reporter: Chris Armstrong
>Assignee: Nikita Matrosov
>  Labels: Android, easyfix, triaged
>
> On Android, a string passed for the defaultText parameter to prompt() is 
> instead used as the placeholder text (i.e. the text shown when the box is 
> empty). This behaviour is inconsistent with other platforms and incorrect 
> compared to the documentation.
> The offending code (from line 282):
> {{
> public synchronized void prompt(final String message, final String title, 
> final JSONArray buttonLabels, final String defaultText, final CallbackContext 
> callbackContext) {
> ...
> promptInput.setHint(defaultText);
> }}
> Instead of EditText.setHint(), EditText.setText() should be called with the 
> default text.



--
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] [Assigned] (CB-11677) in cordova-plugin-dialogs prompt text is invisible

2016-08-12 Thread Nikita Matrosov (JIRA)

 [ 
https://issues.apache.org/jira/browse/CB-11677?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nikita Matrosov reassigned CB-11677:


Assignee: Nikita Matrosov

> in cordova-plugin-dialogs prompt text is invisible
> --
>
> Key: CB-11677
> URL: https://issues.apache.org/jira/browse/CB-11677
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: Android, Plugin Dialogs
>Affects Versions: 1.2.1
> Environment: ionic-framework 1.1
> Android
> Windows 10
>Reporter: dinesh
>Assignee: Nikita Matrosov
>  Labels: easyfix, newbie
>
> dialog prompt text color is not set. As a result the text appears invisible 
> to the user.
> I added c. line 290 in src\Notification.java in function prompt() to 
> temporarily get around this problem 
> promptInput.setTextColor(0xff44);



--
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