[jira] [Commented] (CB-3576) Add support for self-signed SSL certficates in InAppBrowser

2013-09-18 Thread Arjun T Raj (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-3576?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13770502#comment-13770502
 ] 

Arjun T Raj commented on CB-3576:
-

iam wrkng on phonegap 3.0 (both ios and android) :(






-- 

Regards,

arJun
SE : HiFX IT  Media Services (P) Ltd.


 Add support for self-signed SSL certficates in InAppBrowser
 ---

 Key: CB-3576
 URL: https://issues.apache.org/jira/browse/CB-3576
 Project: Apache Cordova
  Issue Type: Improvement
  Components: Android, iOS, Plugin InAppBrowser
Affects Versions: 2.7.0, 2.8.0
 Environment: Android and iOS
Reporter: Montyleena
Assignee: Andrew Grieve
  Labels: android, https, inappbrowser,, ios, ssl
 Attachments: InAppBrowser.java


 Local https links are blocked by default in InAppBrowser (links using a local 
 SSL certificate which can't be verified by a 3rd party). Ideally, user should 
 be given an option to proceed or cancel the request like the default 
 desktop/mobile browsers do. 
 Right now, we have to overwrite the following API in Android to access such 
 URLs but onReceivedSslError() function gets called only for the main PhoneGap 
 window browser and not for InAppBrowser.
 Create a new class:
 public class CustomWebViewClient extends CordovaWebViewClient {
   
   public static final String LOG_TAG = Plugin;
   
   public CustomWebViewClient(DroidGap ctx) {
 super(ctx);
 Log.d(LOG_TAG, Constructor!);
 }
 @Override
 public void onReceivedSslError(WebView view, SslErrorHandler handler, 
 SslError error) {
   handler.proceed();
 }
 }
 In the main class, we use our custom class as a web view client
  CordovaWebViewClient webViewClient = new CustomWebViewClient(this);
 webViewClient.setWebView(this.appView);
 this.appView.setWebViewClient(webViewClient);
 And similar type of code needs to be written for iOS.
 InAppBrowser should pick up the SSL settings from the main web view and once 
 we overwrite the onReceivedSslError() function, then it should allow such 
 URLs in the InAppBrowser too.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (CB-3576) Add support for self-signed SSL certficates in InAppBrowser

2013-09-18 Thread Montyleena (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-3576?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13770511#comment-13770511
 ] 

Montyleena commented on CB-3576:


Please check out my pull requests in that case:
iOS: https://github.com/apache/cordova-ios/pull/59
Android: https://github.com/apache/cordova-android/pull/63

You can compare the code changes and do similar change in your PhoneGap 3.0 
code and then build a new PhoneGap 3.0 jar. For Android, you will need to 
download PhoneGap's code and build it with the changes. For iOS, you can simply 
make the changes in your existing XCode project as PhoneGap's code is included 
in iOS project.

 Add support for self-signed SSL certficates in InAppBrowser
 ---

 Key: CB-3576
 URL: https://issues.apache.org/jira/browse/CB-3576
 Project: Apache Cordova
  Issue Type: Improvement
  Components: Android, iOS, Plugin InAppBrowser
Affects Versions: 2.7.0, 2.8.0
 Environment: Android and iOS
Reporter: Montyleena
Assignee: Andrew Grieve
  Labels: android, https, inappbrowser,, ios, ssl
 Attachments: InAppBrowser.java


 Local https links are blocked by default in InAppBrowser (links using a local 
 SSL certificate which can't be verified by a 3rd party). Ideally, user should 
 be given an option to proceed or cancel the request like the default 
 desktop/mobile browsers do. 
 Right now, we have to overwrite the following API in Android to access such 
 URLs but onReceivedSslError() function gets called only for the main PhoneGap 
 window browser and not for InAppBrowser.
 Create a new class:
 public class CustomWebViewClient extends CordovaWebViewClient {
   
   public static final String LOG_TAG = Plugin;
   
   public CustomWebViewClient(DroidGap ctx) {
 super(ctx);
 Log.d(LOG_TAG, Constructor!);
 }
 @Override
 public void onReceivedSslError(WebView view, SslErrorHandler handler, 
 SslError error) {
   handler.proceed();
 }
 }
 In the main class, we use our custom class as a web view client
  CordovaWebViewClient webViewClient = new CustomWebViewClient(this);
 webViewClient.setWebView(this.appView);
 this.appView.setWebViewClient(webViewClient);
 And similar type of code needs to be written for iOS.
 InAppBrowser should pick up the SSL settings from the main web view and once 
 we overwrite the onReceivedSslError() function, then it should allow such 
 URLs in the InAppBrowser too.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (CB-3020) HideKeyboardFormAccessoryBar and KeyboardShrinksView show white bar instead of removing it

2013-09-18 Thread Miguel Angel Duran Garcia (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-3020?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13770541#comment-13770541
 ] 

Miguel Angel Duran Garcia commented on CB-3020:
---

For me the Shazron's solutions is working fine if the KeyboardShrinksView 
option is set to false. For now is far enough.

 HideKeyboardFormAccessoryBar and KeyboardShrinksView show white bar instead 
 of removing it
 --

 Key: CB-3020
 URL: https://issues.apache.org/jira/browse/CB-3020
 Project: Apache Cordova
  Issue Type: Bug
  Components: iOS
Affects Versions: 2.6.0, 3.0.0
 Environment: ios 6.1.3
Reporter: Horst Perfect
Assignee: Shazron Abdullah
Priority: Minor
  Labels: bug, ios, ios6.1.3

 I use phonegap 2.6 with the two new preferences HideKeyboardFormAccessoryBar 
 KeyboardShrinksView set to true. Instead of the AccessoryBar a white bar 
 appears ([screenshot|http://i.stack.imgur.com/3fgV8.png]).
 This is just happening when i set *both* of the preferences to true. When i 
 just set the AccessoryBar preference to true the bar disappears as planned.
 Horst

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (CB-4853) Auto show splashScreen

2013-09-18 Thread Jonathan Naguin (JIRA)

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

Jonathan Naguin updated CB-4853:


Description: 
Add the ability of automatically show the spashScreen when the app is loading 
as Android does, for example.


---

I think that with this code on MainPage.xaml.cs is done:

{code}
private void showSplashScreen(int wait_ms)
{
var plugin = 
WPCordovaClassLib.Cordova.CommandFactory.CreateByServiceName(SplashScreen);

if (plugin != null){
plugin.InvokeMethodNamed(show, new object[] { String.Empty });

System.Threading.Timer timer = null;

timer = new System.Threading.Timer(
callback = {
plugin.InvokeMethodNamed(hide, new object[] { String.Empty });
timer.Dispose();
},
null,
wait_ms,
System.Threading.Timeout.Infinite
);
}
}

public MainPage(){
...
this.showSplashScreen(2);
}
{code}

  was:
Add the ability of automatically show the spashScreen when the app is loading 
as Android does, for example.


---

I think that with this code on MainPage.xaml.cs is done:

{code}
private void showSplashScreen()
{
var plugin = 
WPCordovaClassLib.Cordova.CommandFactory.CreateByServiceName(SplashScreen);

if (plugin != null){
plugin.InvokeMethodNamed(show, new object[] { String.Empty });
}
}

public MainPage(){
...
this.showSplashScreen();
}
{code}


Add timeout to hide the splashScreen

 Auto show splashScreen
 --

 Key: CB-4853
 URL: https://issues.apache.org/jira/browse/CB-4853
 Project: Apache Cordova
  Issue Type: Improvement
  Components: WP8
Affects Versions: 3.0.0
 Environment: Any
Reporter: Jonathan Naguin
Assignee: Jesse MacFadyen
Priority: Minor
  Labels: splashscreen, wp8

 Add the ability of automatically show the spashScreen when the app is loading 
 as Android does, for example.
 ---
 I think that with this code on MainPage.xaml.cs is done:
 {code}
 private void showSplashScreen(int wait_ms)
 {
 var plugin = 
 WPCordovaClassLib.Cordova.CommandFactory.CreateByServiceName(SplashScreen);
 
 if (plugin != null){
 plugin.InvokeMethodNamed(show, new object[] { String.Empty });
 System.Threading.Timer timer = null;
 timer = new System.Threading.Timer(
 callback = {
 plugin.InvokeMethodNamed(hide, new object[] { String.Empty 
 });
 timer.Dispose();
 },
 null,
 wait_ms,
 System.Threading.Timeout.Infinite
 );
 }
 }
 public MainPage(){
 ...
 this.showSplashScreen(2);
 }
 {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Comment Edited] (CB-4853) Auto show splashScreen

2013-09-18 Thread Jonathan Naguin (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-4853?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13770555#comment-13770555
 ] 

Jonathan Naguin edited comment on CB-4853 at 9/18/13 8:18 AM:
--

Added timeout to hide the splashScreen

  was (Author: jonathannaguin):
Add timeout to hide the splashScreen
  
 Auto show splashScreen
 --

 Key: CB-4853
 URL: https://issues.apache.org/jira/browse/CB-4853
 Project: Apache Cordova
  Issue Type: Improvement
  Components: WP8
Affects Versions: 3.0.0
 Environment: Any
Reporter: Jonathan Naguin
Assignee: Jesse MacFadyen
Priority: Minor
  Labels: splashscreen, wp8

 Add the ability of automatically show the spashScreen when the app is loading 
 as Android does, for example.
 ---
 I think that with this code on MainPage.xaml.cs is done:
 {code}
 private void showSplashScreen(int wait_ms)
 {
 var plugin = 
 WPCordovaClassLib.Cordova.CommandFactory.CreateByServiceName(SplashScreen);
 
 if (plugin != null){
 plugin.InvokeMethodNamed(show, new object[] { String.Empty });
 System.Threading.Timer timer = null;
 timer = new System.Threading.Timer(
 callback = {
 plugin.InvokeMethodNamed(hide, new object[] { String.Empty 
 });
 timer.Dispose();
 },
 null,
 wait_ms,
 System.Threading.Timeout.Infinite
 );
 }
 }
 public MainPage(){
 ...
 this.showSplashScreen(2);
 }
 {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (CB-4426) Create app doesn't work if computer cannot connect to github and raises exception instead of showing friendly error message

2013-09-18 Thread Hadrien Tipule (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-4426?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13770566#comment-13770566
 ] 

Hadrien Tipule commented on CB-4426:


Is there a workaround for versions 2.9.x ?

 Create app doesn't work if computer cannot connect to github and raises 
 exception instead of showing friendly error message
 ---

 Key: CB-4426
 URL: https://issues.apache.org/jira/browse/CB-4426
 Project: Apache Cordova
  Issue Type: Bug
  Components: App Hello World, CLI
Affects Versions: 3.0.0
Reporter: Simone Chiaretta
Assignee: Filip Maj

 i just installed phonegap 3.0 and tried to create a new app via the CLI: 
 phonegap create my-app
 But I get the following error:
 [phonegap] downloading 
 https://github.com/phonegap/phonegap-app-hello-world/archive/3.0.0.tar.gz...
 TypeError: Cannot read property 'length' of undefined
 at Request.request.get.pipe.pipe.tar.Extract.path [as _callback] 
 (C:\Documen
 ts and Settings\CHIARSI\Application 
 Data\npm\node_modules\phonegap\node_modules\cordova\src\lazy_load.js:70:78)
 at self.callback (C:\Documents and Settings\CHIARSI\Application 
 Data\npm\node_modules\phonegap\node_modules\cordova\node_modules\request\index.js:148:22)
 at Request.EventEmitter.emit (events.js:117:20)
 at ClientRequest.self.clientErrorHandler (C:\Documents and 
 Settings\CHIARSI\Application 
 Data\npm\node_modules\phonegap\node_modules\cordova\node_modules\request\index.js:257:10)
 at ClientRequest.EventEmitter.emit (events.js:95:17)
 at CleartextStream.socketErrorListener (http.js:1528:9)
 at CleartextStream.EventEmitter.emit (events.js:95:17)
 at Socket.onerror (tls.js:1424:17)
 at Socket.EventEmitter.emit (events.js:117:20)
 at net.js:441:14
 I have the impression the phonegap command line utility doesn't read properly 
 the proxy configuration of windows, and this is due to some mishandling of 
 the error.
 So, I posted this message, first to report this small bug, and second to ask 
 how can I set proxy configuration for the phonegap utility.
 Or if there is a workaround to this in case proxy cannot be set.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (CB-3020) HideKeyboardFormAccessoryBar and KeyboardShrinksView show white bar instead of removing it

2013-09-18 Thread Miguel Angel Duran Garcia (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-3020?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13770597#comment-13770597
 ] 

Miguel Angel Duran Garcia commented on CB-3020:
---

Ok, more info about that f***ing problem. xD

For me the Shazron's solutions is working fine... BUT, the section where the 
Toolbar of the Keyboard is supossed to be, then is not showing the content of 
the page.

I swear that all the troubles with the Keyboard is driving me crazy!

https://www.dropbox.com/s/kkvbjmu1k622gsp/iphone.png


 HideKeyboardFormAccessoryBar and KeyboardShrinksView show white bar instead 
 of removing it
 --

 Key: CB-3020
 URL: https://issues.apache.org/jira/browse/CB-3020
 Project: Apache Cordova
  Issue Type: Bug
  Components: iOS
Affects Versions: 2.6.0, 3.0.0
 Environment: ios 6.1.3
Reporter: Horst Perfect
Assignee: Shazron Abdullah
Priority: Minor
  Labels: bug, ios, ios6.1.3

 I use phonegap 2.6 with the two new preferences HideKeyboardFormAccessoryBar 
 KeyboardShrinksView set to true. Instead of the AccessoryBar a white bar 
 appears ([screenshot|http://i.stack.imgur.com/3fgV8.png]).
 This is just happening when i set *both* of the preferences to true. When i 
 just set the AccessoryBar preference to true the bar disappears as planned.
 Horst

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Comment Edited] (CB-3020) HideKeyboardFormAccessoryBar and KeyboardShrinksView show white bar instead of removing it

2013-09-18 Thread Miguel Angel Duran Garcia (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-3020?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13770597#comment-13770597
 ] 

Miguel Angel Duran Garcia edited comment on CB-3020 at 9/18/13 9:26 AM:


Ok, more info about that f***ing problem. xD

For me the Shazron's solutions is working fine... BUT, the section where the 
Toolbar of the Keyboard is supossed to be, then is not showing the content of 
the page.

I swear that all the troubles with the Keyboard is driving me crazy!

!https://photos-5.dropbox.com/t/0/AABWJYiZRSolEAgQ51DpSGgPdyu2eXfeLv22MTAeKZ3zaA/12/201046/png/1024x768/3/1379502000/0/2/iphone.png/zX7kMhNpvGmBzJ3M0lczO0szG7QvEfhqnY6EFSHaBMc!

  was (Author: miduga):
Ok, more info about that f***ing problem. xD

For me the Shazron's solutions is working fine... BUT, the section where the 
Toolbar of the Keyboard is supossed to be, then is not showing the content of 
the page.

I swear that all the troubles with the Keyboard is driving me crazy!

!https://www.dropbox.com/s/kkvbjmu1k622gsp/iphone.png!

  
 HideKeyboardFormAccessoryBar and KeyboardShrinksView show white bar instead 
 of removing it
 --

 Key: CB-3020
 URL: https://issues.apache.org/jira/browse/CB-3020
 Project: Apache Cordova
  Issue Type: Bug
  Components: iOS
Affects Versions: 2.6.0, 3.0.0
 Environment: ios 6.1.3
Reporter: Horst Perfect
Assignee: Shazron Abdullah
Priority: Minor
  Labels: bug, ios, ios6.1.3

 I use phonegap 2.6 with the two new preferences HideKeyboardFormAccessoryBar 
 KeyboardShrinksView set to true. Instead of the AccessoryBar a white bar 
 appears ([screenshot|http://i.stack.imgur.com/3fgV8.png]).
 This is just happening when i set *both* of the preferences to true. When i 
 just set the AccessoryBar preference to true the bar disappears as planned.
 Horst

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Comment Edited] (CB-3020) HideKeyboardFormAccessoryBar and KeyboardShrinksView show white bar instead of removing it

2013-09-18 Thread Miguel Angel Duran Garcia (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-3020?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13770597#comment-13770597
 ] 

Miguel Angel Duran Garcia edited comment on CB-3020 at 9/18/13 9:26 AM:


Ok, more info about that f***ing problem. xD

For me the Shazron's solutions is working fine... BUT, the section where the 
Toolbar of the Keyboard is supossed to be, then is not showing the content of 
the page.

I swear that all the troubles with the Keyboard is driving me crazy!

!https://www.dropbox.com/s/kkvbjmu1k622gsp/iphone.png!


  was (Author: miduga):
Ok, more info about that f***ing problem. xD

For me the Shazron's solutions is working fine... BUT, the section where the 
Toolbar of the Keyboard is supossed to be, then is not showing the content of 
the page.

I swear that all the troubles with the Keyboard is driving me crazy!

https://www.dropbox.com/s/kkvbjmu1k622gsp/iphone.png

  
 HideKeyboardFormAccessoryBar and KeyboardShrinksView show white bar instead 
 of removing it
 --

 Key: CB-3020
 URL: https://issues.apache.org/jira/browse/CB-3020
 Project: Apache Cordova
  Issue Type: Bug
  Components: iOS
Affects Versions: 2.6.0, 3.0.0
 Environment: ios 6.1.3
Reporter: Horst Perfect
Assignee: Shazron Abdullah
Priority: Minor
  Labels: bug, ios, ios6.1.3

 I use phonegap 2.6 with the two new preferences HideKeyboardFormAccessoryBar 
 KeyboardShrinksView set to true. Instead of the AccessoryBar a white bar 
 appears ([screenshot|http://i.stack.imgur.com/3fgV8.png]).
 This is just happening when i set *both* of the preferences to true. When i 
 just set the AccessoryBar preference to true the bar disappears as planned.
 Horst

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Created] (CB-4869) More XML extensions in dectection

2013-09-18 Thread Jonathan Naguin (JIRA)
Jonathan Naguin created CB-4869:
---

 Summary: More XML extensions in dectection
 Key: CB-4869
 URL: https://issues.apache.org/jira/browse/CB-4869
 Project: Apache Cordova
  Issue Type: Improvement
  Components: Plugman
Affects Versions: 3.0.0
 Environment: Any
Reporter: Jonathan Naguin
Assignee: Braden Shepherdson
Priority: Minor


Right now, in config-changes.js the only XML extensions detected are xml 
and appxmanifest. 

It could be interesting add more as xaml which is used in Windows Phone 
development.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Resolved] (CB-4832) [Release + 3.1.0] Tag RC1 for Android

2013-09-18 Thread Andrew Grieve (JIRA)

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

Andrew Grieve resolved CB-4832.
---

Resolution: Fixed

Aha, I didn't notice that you did a tag before. 

Re-tagged at HEAD.

 [Release + 3.1.0] Tag RC1 for Android
 -

 Key: CB-4832
 URL: https://issues.apache.org/jira/browse/CB-4832
 Project: Apache Cordova
  Issue Type: Sub-task
  Components: Android
Reporter: Andrew Grieve
Assignee: Andrew Grieve
 Fix For: 3.1.0


 Refer to Workflow here:
 http://wiki.apache.org/cordova/CuttingReleases
 Don't forget about CHANGELOG.md

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (CB-4862) ios 7 keyboard resizes the page even with KeyboardShrinksView set to false

2013-09-18 Thread Jake Williams (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-4862?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13770838#comment-13770838
 ] 

Jake Williams commented on CB-4862:
---

I'm currently trying to get a basic test case to demonstrate the problem, but 
I'm not having much luck so far.  The problem occurred on 2.8.0.  I tried 
updating the CDVViewController.m file to include the ios 7 changes that haven't 
been released yet but it didn't effect anything in our codebase.

I'm going to keep trying to get a working test project.  It would be easier if 
the safari web inspector would work correctly with ios 7.

 ios 7 keyboard resizes the page even with KeyboardShrinksView set to false
 --

 Key: CB-4862
 URL: https://issues.apache.org/jira/browse/CB-4862
 Project: Apache Cordova
  Issue Type: Bug
  Components: iOS
Affects Versions: 2.8.0
 Environment: ipod 5th gen ios 7 and simulator for ios 7
Reporter: Jake Williams
Assignee: Shazron Abdullah
  Labels: ios7

 We have a page with a fixed footer and some inputs.  In previous ios versions 
 the page would be pushed up when an input was focused and the keyboard came 
 up.  In ios 7, the page height is reduced to the available space after the 
 keyboard appears and the footer covers the input (depends on the position of 
 the footer, but it does happen sometimes).  There is also a problem where the 
 input could be beneath the keyboard if you have multiple inputs and you use 
 next/previous to move between them.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (CB-3964) Make jshint work with Grunt

2013-09-18 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-3964?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13770847#comment-13770847
 ] 

ASF subversion and git services commented on CB-3964:
-

Commit f0458b6cd13557702fa869b999feec944c313d19 in branch refs/heads/master 
from [~lholmquist]
[ https://git-wip-us.apache.org/repos/asf?p=cordova-js.git;h=f0458b6 ]

[CB-3964] Use grunt's built in jshint.

You may need to delete and re-install node_modules for this to work.


 Make jshint work with Grunt
 ---

 Key: CB-3964
 URL: https://issues.apache.org/jira/browse/CB-3964
 Project: Apache Cordova
  Issue Type: Bug
  Components: CordovaJS
Affects Versions: Master
Reporter: Andrew Grieve
Assignee: Lucas Holmquist

 This involves revisiting all of our settings as right now there are wy 
 too many warnings being emitted.
 Note that our .jshintrc can be used by grunt by removing all comments from 
 the JSON file, but still there's too many warnings.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Closed] (CB-4857) Update mobile-spec dependency plugin.xml for new core Media plugin namespace

2013-09-18 Thread Andrew Grieve (JIRA)

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

Andrew Grieve closed CB-4857.
-

Resolution: Fixed
  Assignee: Andrew Grieve  (was: Shazron Abdullah)

 Update mobile-spec dependency plugin.xml for new core Media plugin namespace
 

 Key: CB-4857
 URL: https://issues.apache.org/jira/browse/CB-4857
 Project: Apache Cordova
  Issue Type: Bug
  Components: mobile-spec, Plugin Media
Affects Versions: Master
Reporter: Shazron Abdullah
Assignee: Andrew Grieve
 Fix For: 3.1.0


 This is based off the plugin.xml in the dev branch of the core plugin.
 See: 
 https://git-wip-us.apache.org/repos/asf?p=cordova-plugin-media.git;a=blobdiff;f=plugin.xml;h=0614b6555de97dafcebf2dd48269e104ecffb1c5;hp=2a2552e37dd3fdba17bd55fe243f7593c805fd32;hb=653c2fbc9291f84558e2e734c8f5de24b6ac4d58;hpb=7d62099d7b26f18cb9ba1ec4843bb4032092af33
 Old:
 org.apache.cordova.core.AudioHandler
 New:
 org.apache.cordova.core.media

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (CB-4857) Update mobile-spec dependency plugin.xml for new core Media plugin namespace

2013-09-18 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-4857?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13770858#comment-13770858
 ] 

ASF subversion and git services commented on CB-4857:
-

Commit 1e1f6d343e76947cb99fc471dae09137a6227114 in branch refs/heads/master 
from [~agrieve]
[ https://git-wip-us.apache.org/repos/asf?p=cordova-mobile-spec.git;h=1e1f6d3 ]

[CB-4857] Fix plugin id of dependent plugin (AudioHandler-media)


 Update mobile-spec dependency plugin.xml for new core Media plugin namespace
 

 Key: CB-4857
 URL: https://issues.apache.org/jira/browse/CB-4857
 Project: Apache Cordova
  Issue Type: Bug
  Components: mobile-spec, Plugin Media
Affects Versions: Master
Reporter: Shazron Abdullah
Assignee: Shazron Abdullah
 Fix For: 3.1.0


 This is based off the plugin.xml in the dev branch of the core plugin.
 See: 
 https://git-wip-us.apache.org/repos/asf?p=cordova-plugin-media.git;a=blobdiff;f=plugin.xml;h=0614b6555de97dafcebf2dd48269e104ecffb1c5;hp=2a2552e37dd3fdba17bd55fe243f7593c805fd32;hb=653c2fbc9291f84558e2e734c8f5de24b6ac4d58;hpb=7d62099d7b26f18cb9ba1ec4843bb4032092af33
 Old:
 org.apache.cordova.core.AudioHandler
 New:
 org.apache.cordova.core.media

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (CB-4857) Update mobile-spec dependency plugin.xml for new core Media plugin namespace

2013-09-18 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-4857?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13770860#comment-13770860
 ] 

ASF subversion and git services commented on CB-4857:
-

Commit d03db7266a4fe27c3b3724d20d8f84d7bf0aa21d in branch refs/heads/3.1.x from 
[~agrieve]
[ https://git-wip-us.apache.org/repos/asf?p=cordova-mobile-spec.git;h=d03db72 ]

[CB-4857] Fix plugin id of dependent plugin (AudioHandler-media)
(cherry picked from commit 1e1f6d343e76947cb99fc471dae09137a6227114)


 Update mobile-spec dependency plugin.xml for new core Media plugin namespace
 

 Key: CB-4857
 URL: https://issues.apache.org/jira/browse/CB-4857
 Project: Apache Cordova
  Issue Type: Bug
  Components: mobile-spec, Plugin Media
Affects Versions: Master
Reporter: Shazron Abdullah
Assignee: Andrew Grieve
 Fix For: 3.1.0


 This is based off the plugin.xml in the dev branch of the core plugin.
 See: 
 https://git-wip-us.apache.org/repos/asf?p=cordova-plugin-media.git;a=blobdiff;f=plugin.xml;h=0614b6555de97dafcebf2dd48269e104ecffb1c5;hp=2a2552e37dd3fdba17bd55fe243f7593c805fd32;hb=653c2fbc9291f84558e2e734c8f5de24b6ac4d58;hpb=7d62099d7b26f18cb9ba1ec4843bb4032092af33
 Old:
 org.apache.cordova.core.AudioHandler
 New:
 org.apache.cordova.core.media

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Resolved] (CB-3964) Make jshint work with Grunt

2013-09-18 Thread Andrew Grieve (JIRA)

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

Andrew Grieve resolved CB-3964.
---

   Resolution: Fixed
Fix Version/s: 3.2.0

 Make jshint work with Grunt
 ---

 Key: CB-3964
 URL: https://issues.apache.org/jira/browse/CB-3964
 Project: Apache Cordova
  Issue Type: Bug
  Components: CordovaJS
Affects Versions: Master
Reporter: Andrew Grieve
Assignee: Lucas Holmquist
 Fix For: 3.2.0


 This involves revisiting all of our settings as right now there are wy 
 too many warnings being emitted.
 Note that our .jshintrc can be used by grunt by removing all comments from 
 the JSON file, but still there's too many warnings.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Comment Edited] (CB-4862) ios 7 keyboard resizes the page even with KeyboardShrinksView set to false

2013-09-18 Thread Jake Williams (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-4862?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13770838#comment-13770838
 ] 

Jake Williams edited comment on CB-4862 at 9/18/13 4:24 PM:


I'm currently trying to get a basic test case to demonstrate the problem, but 
I'm not having much luck so far.  The problem occurred on 2.8.0.  I tried 
updating the CDVViewController.m file to include the ios 7 changes that haven't 
been released yet but it didn't effect anything in our codebase.

I'm going to keep trying to get a working test project.  It would be easier if 
the safari web inspector would work correctly with ios 7.

EDIT: So, I've spent all morning working on a test case.  Even though it 
appears like in our code something is causing the view to resize, I see no 
evidence of that happening in my test case.  I'll keep trying to isolate what's 
causing the issue, if it turns out that it is something in ios or cordova I'll 
let y'all know.

  was (Author: twomz):
I'm currently trying to get a basic test case to demonstrate the problem, 
but I'm not having much luck so far.  The problem occurred on 2.8.0.  I tried 
updating the CDVViewController.m file to include the ios 7 changes that haven't 
been released yet but it didn't effect anything in our codebase.

I'm going to keep trying to get a working test project.  It would be easier if 
the safari web inspector would work correctly with ios 7.
  
 ios 7 keyboard resizes the page even with KeyboardShrinksView set to false
 --

 Key: CB-4862
 URL: https://issues.apache.org/jira/browse/CB-4862
 Project: Apache Cordova
  Issue Type: Bug
  Components: iOS
Affects Versions: 2.8.0
 Environment: ipod 5th gen ios 7 and simulator for ios 7
Reporter: Jake Williams
Assignee: Shazron Abdullah
  Labels: ios7

 We have a page with a fixed footer and some inputs.  In previous ios versions 
 the page would be pushed up when an input was focused and the keyboard came 
 up.  In ios 7, the page height is reduced to the available space after the 
 keyboard appears and the footer covers the input (depends on the position of 
 the footer, but it does happen sometimes).  There is also a problem where the 
 input could be beneath the keyboard if you have multiple inputs and you use 
 next/previous to move between them.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Resolved] (CB-4570) [BlackBerry10] Update config.xml validation rules

2013-09-18 Thread Jeffrey Heifetz (JIRA)

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

Jeffrey Heifetz resolved CB-4570.
-

Resolution: Fixed

 [BlackBerry10] Update config.xml validation rules
 -

 Key: CB-4570
 URL: https://issues.apache.org/jira/browse/CB-4570
 Project: Apache Cordova
  Issue Type: Improvement
  Components: BlackBerry
Affects Versions: 3.0.0
Reporter: Bryan Higgins
Assignee: Jeffrey Heifetz
 Fix For: 3.1.0


 We require both an author element and a content element. 
 Missing content element should default to index.html. 
 Missing author element should have a reasonable default but still spit out a 
 warning. 
 Additionally it'd be great to get all fo the code cleaned up into the 
 packager-validator file (it currently lives there, config-parser and possibly 
 elsewhere).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Closed] (CB-4570) [BlackBerry10] Update config.xml validation rules

2013-09-18 Thread Jeffrey Heifetz (JIRA)

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

Jeffrey Heifetz closed CB-4570.
---


 [BlackBerry10] Update config.xml validation rules
 -

 Key: CB-4570
 URL: https://issues.apache.org/jira/browse/CB-4570
 Project: Apache Cordova
  Issue Type: Improvement
  Components: BlackBerry
Affects Versions: 3.0.0
Reporter: Bryan Higgins
Assignee: Jeffrey Heifetz
 Fix For: 3.1.0


 We require both an author element and a content element. 
 Missing content element should default to index.html. 
 Missing author element should have a reasonable default but still spit out a 
 warning. 
 Additionally it'd be great to get all fo the code cleaned up into the 
 packager-validator file (it currently lives there, config-parser and possibly 
 elsewhere).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Created] (CB-4870) Android - icons in www/res/icon/ aren't replacing original defaults

2013-09-18 Thread Lindsey Simon (JIRA)
Lindsey Simon created CB-4870:
-

 Summary: Android - icons in www/res/icon/ aren't replacing 
original defaults
 Key: CB-4870
 URL: https://issues.apache.org/jira/browse/CB-4870
 Project: Apache Cordova
  Issue Type: Bug
  Components: CLI
Affects Versions: 3.0.0
 Environment: mac osx
Reporter: Lindsey Simon
Assignee: Braden Shepherdson


I created an android app initially without my icons in the www/res/icons folder 
but when I run phonegap build android and look in 
platforms/android/res/drawable I see the old one in icon.png and in the 
drawable-foo directories I also see the original (cordova) icon. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (CB-3020) HideKeyboardFormAccessoryBar and KeyboardShrinksView show white bar instead of removing it

2013-09-18 Thread Shazron Abdullah (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-3020?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13771052#comment-13771052
 ] 

Shazron Abdullah commented on CB-3020:
--

[~adlk]not sure what's going on with your setup, can you try a test with a new 
project and see if it occurs, to rule things out?

[~miduga]not showing? can you do a screenshot before and after. I did test with 
a UI element in there, and a button showed up fine for me.

 HideKeyboardFormAccessoryBar and KeyboardShrinksView show white bar instead 
 of removing it
 --

 Key: CB-3020
 URL: https://issues.apache.org/jira/browse/CB-3020
 Project: Apache Cordova
  Issue Type: Bug
  Components: iOS
Affects Versions: 2.6.0, 3.0.0
 Environment: ios 6.1.3
Reporter: Horst Perfect
Assignee: Shazron Abdullah
Priority: Minor
  Labels: bug, ios, ios6.1.3

 I use phonegap 2.6 with the two new preferences HideKeyboardFormAccessoryBar 
 KeyboardShrinksView set to true. Instead of the AccessoryBar a white bar 
 appears ([screenshot|http://i.stack.imgur.com/3fgV8.png]).
 This is just happening when i set *both* of the preferences to true. When i 
 just set the AccessoryBar preference to true the bar disappears as planned.
 Horst

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (CB-3020) HideKeyboardFormAccessoryBar and KeyboardShrinksView show white bar instead of removing it

2013-09-18 Thread Shazron Abdullah (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-3020?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13771055#comment-13771055
 ] 

Shazron Abdullah commented on CB-3020:
--

[~adlk] Are you using an iPhone 5 or?

 HideKeyboardFormAccessoryBar and KeyboardShrinksView show white bar instead 
 of removing it
 --

 Key: CB-3020
 URL: https://issues.apache.org/jira/browse/CB-3020
 Project: Apache Cordova
  Issue Type: Bug
  Components: iOS
Affects Versions: 2.6.0, 3.0.0
 Environment: ios 6.1.3
Reporter: Horst Perfect
Assignee: Shazron Abdullah
Priority: Minor
  Labels: bug, ios, ios6.1.3

 I use phonegap 2.6 with the two new preferences HideKeyboardFormAccessoryBar 
 KeyboardShrinksView set to true. Instead of the AccessoryBar a white bar 
 appears ([screenshot|http://i.stack.imgur.com/3fgV8.png]).
 This is just happening when i set *both* of the preferences to true. When i 
 just set the AccessoryBar preference to true the bar disappears as planned.
 Horst

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (CB-3020) HideKeyboardFormAccessoryBar and KeyboardShrinksView show white bar instead of removing it

2013-09-18 Thread Horst Perfect (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-3020?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13771060#comment-13771060
 ] 

Horst Perfect commented on CB-3020:
---

Yes!

 HideKeyboardFormAccessoryBar and KeyboardShrinksView show white bar instead 
 of removing it
 --

 Key: CB-3020
 URL: https://issues.apache.org/jira/browse/CB-3020
 Project: Apache Cordova
  Issue Type: Bug
  Components: iOS
Affects Versions: 2.6.0, 3.0.0
 Environment: ios 6.1.3
Reporter: Horst Perfect
Assignee: Shazron Abdullah
Priority: Minor
  Labels: bug, ios, ios6.1.3

 I use phonegap 2.6 with the two new preferences HideKeyboardFormAccessoryBar 
 KeyboardShrinksView set to true. Instead of the AccessoryBar a white bar 
 appears ([screenshot|http://i.stack.imgur.com/3fgV8.png]).
 This is just happening when i set *both* of the preferences to true. When i 
 just set the AccessoryBar preference to true the bar disappears as planned.
 Horst

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Issue Comment Deleted] (CB-3020) HideKeyboardFormAccessoryBar and KeyboardShrinksView show white bar instead of removing it

2013-09-18 Thread Horst Perfect (JIRA)

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

Horst Perfect updated CB-3020:
--

Comment: was deleted

(was: Yes!)

 HideKeyboardFormAccessoryBar and KeyboardShrinksView show white bar instead 
 of removing it
 --

 Key: CB-3020
 URL: https://issues.apache.org/jira/browse/CB-3020
 Project: Apache Cordova
  Issue Type: Bug
  Components: iOS
Affects Versions: 2.6.0, 3.0.0
 Environment: ios 6.1.3
Reporter: Horst Perfect
Assignee: Shazron Abdullah
Priority: Minor
  Labels: bug, ios, ios6.1.3

 I use phonegap 2.6 with the two new preferences HideKeyboardFormAccessoryBar 
 KeyboardShrinksView set to true. Instead of the AccessoryBar a white bar 
 appears ([screenshot|http://i.stack.imgur.com/3fgV8.png]).
 This is just happening when i set *both* of the preferences to true. When i 
 just set the AccessoryBar preference to true the bar disappears as planned.
 Horst

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (CB-3020) HideKeyboardFormAccessoryBar and KeyboardShrinksView show white bar instead of removing it

2013-09-18 Thread Horst Perfect (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-3020?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13771066#comment-13771066
 ] 

Horst Perfect commented on CB-3020:
---

Yes, it's an iphone5.

Ok, i've tested it with a new project and it's exactly the same as mentioned 
before, sorry!
Unfortunately i have no iphone 4 with ios7 with me to test it on this device as 
well. 

 HideKeyboardFormAccessoryBar and KeyboardShrinksView show white bar instead 
 of removing it
 --

 Key: CB-3020
 URL: https://issues.apache.org/jira/browse/CB-3020
 Project: Apache Cordova
  Issue Type: Bug
  Components: iOS
Affects Versions: 2.6.0, 3.0.0
 Environment: ios 6.1.3
Reporter: Horst Perfect
Assignee: Shazron Abdullah
Priority: Minor
  Labels: bug, ios, ios6.1.3

 I use phonegap 2.6 with the two new preferences HideKeyboardFormAccessoryBar 
 KeyboardShrinksView set to true. Instead of the AccessoryBar a white bar 
 appears ([screenshot|http://i.stack.imgur.com/3fgV8.png]).
 This is just happening when i set *both* of the preferences to true. When i 
 just set the AccessoryBar preference to true the bar disappears as planned.
 Horst

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (CB-4574) deviceready not firing on wp7 platform when file-transfer plugin is added

2013-09-18 Thread Jesse MacFadyen (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-4574?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13771158#comment-13771158
 ] 

Jesse MacFadyen commented on CB-4574:
-

Abhishek, please retest your specific case with the latest version of the 
plugin.

 deviceready not firing on wp7 platform when file-transfer plugin is added
 -

 Key: CB-4574
 URL: https://issues.apache.org/jira/browse/CB-4574
 Project: Apache Cordova
  Issue Type: Bug
  Components: CordovaJS, Plugin File Transfer, WP7
Affects Versions: 3.0.0
 Environment: Visual studio 2012 express,running on emulator 7.1,OS: 
 win8 single language edition
Reporter: Abhishek Venkatesh
Assignee: Benn Mapes

 When the file transfer plugin is added to the wp7 platform in my project, the 
 following error shows in the error console:
 deviceready has not fired after 5 seconds.
 Channel not fired: onCordovaReady
 Channel not fired: onCordovaInfoReady
 When the file transfer plugin is removed, deviceready fires.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (CB-4850) Write the device UUID only when it does not exist

2013-09-18 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-4850?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13771178#comment-13771178
 ] 

ASF subversion and git services commented on CB-4850:
-

Commit ab7871466c26701bea7bcc19c9d8670c3e0f7f47 in branch refs/heads/master 
from [~purplecabbage]
[ https://git-wip-us.apache.org/repos/asf?p=cordova-wp8.git;h=ab78714 ]

[CB-4850] only write device guid if it does not exist


 Write the device UUID only when it does not exist
 -

 Key: CB-4850
 URL: https://issues.apache.org/jira/browse/CB-4850
 Project: Apache Cordova
  Issue Type: Improvement
  Components: WP8
Affects Versions: 3.0.0
 Environment: Any
Reporter: Jonathan Naguin
Assignee: Jesse MacFadyen
Priority: Minor

 Currently, the device UUID is writen back to the IsolatedStorageFile in every 
 run even when it is not necessary. 
 On CordovaView.xaml.cs:
 {code}
 string deviceUUID = ;
 using (IsolatedStorageFile appStorage = 
 IsolatedStorageFile.GetUserStoreForApplication())
 {
 try
 {
 IsolatedStorageFileStream fileStream = new 
 IsolatedStorageFileStream(DeviceID.txt, FileMode.Open, FileAccess.Read, 
 appStorage);
 using (StreamReader reader = new StreamReader(fileStream))
 {
 deviceUUID = reader.ReadLine();
 }
 }
 catch (Exception /*ex*/)
 {
 deviceUUID = Guid.NewGuid().ToString();
 }
 Debug.WriteLine(Updating IsolatedStorage for APP:DeviceID ::  + 
 deviceUUID);
 IsolatedStorageFileStream file = new 
 IsolatedStorageFileStream(DeviceID.txt, FileMode.Create, FileAccess.Write, 
 appStorage);
 using (StreamWriter writeFile = new StreamWriter(file))
 {
 writeFile.WriteLine(deviceUUID);
 writeFile.Close();
 }
 }
 {code}
 The writing code should be moved into the catch after creating a new one as:
 {code}
 catch (Exception /*ex*/)
 {
 deviceUUID = Guid.NewGuid().ToString();
 IsolatedStorageFileStream file = new 
 IsolatedStorageFileStream(DeviceID.txt, FileMode.Create, FileAccess.Write, 
 appStorage);
 using (StreamWriter writeFile = new StreamWriter(file))
 {
 writeFile.WriteLine(deviceUUID);
 writeFile.Close();
 }
 }
 {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Comment Edited] (CB-4851) Android Storage API

2013-09-18 Thread Joe Bowser (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-4851?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13771255#comment-13771255
 ] 

Joe Bowser edited comment on CB-4851 at 9/18/13 9:24 PM:
-

The key/value pair is still present in Cordova, but WebSQL is now a plugin.

  was (Author: bowserj):
The key/vaule pair is still present in Cordova, but WebSQL is now a plugin.
  
 Android Storage API
 ---

 Key: CB-4851
 URL: https://issues.apache.org/jira/browse/CB-4851
 Project: Apache Cordova
  Issue Type: Bug
  Components: Android
Affects Versions: 3.0.0
Reporter: Dick van den Brink
Assignee: Joe Bowser
  Labels: android, storage

 According to the documentation the Storage API is provided in the core of 
 cordova, but it is removed from the Android Core.
 Documentation: 
 http://cordova.apache.org/docs/en/3.0.0/cordova_storage_storage.md.html#Storage
 {quote}As of version 3.0, access to Storage APIs is built into Cordova, and 
 does not require using the CLI to add plugins as described in The 
 Command-line Interface.
 {quote}
 I did add the xml to the config page but I get the following error:
 {quote}
 Error adding plugin org.apache.cordova.Storage.
 exec() call to unknown plugin: Storage
 java.lang.ClassNotFoundException: org.apache.cordova.Storage
 at java.lang.Class.classForName(Native Method)
 at java.lang.Class.forName(Class.java:217)
 at java.lang.Class.forName(Class.java:172)
 at org.apache.cordova.PluginEntry.getClassByName(PluginEntry.java:117)
 {quote}
 Is the documentation wrong or is the Storage class incorrectly deleted?
 Note: the storage code is still provided in cordova.js, but not in the jar. 
 Also the Java code is in the 2.9 branch. It is deleted in the commit with 
 sha1 id: adcbd879c846dd3f7a3db960a3c7af14acbbda41

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Comment Edited] (CB-4851) Android Storage API

2013-09-18 Thread Joe Bowser (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-4851?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13771255#comment-13771255
 ] 

Joe Bowser edited comment on CB-4851 at 9/18/13 9:25 PM:
-

The key/value pair is still present in Cordova, but WebSQL is still a plugin.  
However, it's not currently working properly on Android 4.x due to conflicts 
with localStorage and WebSQL namespaces.

  was (Author: bowserj):
The key/value pair is still present in Cordova, but WebSQL is now a plugin.
  
 Android Storage API
 ---

 Key: CB-4851
 URL: https://issues.apache.org/jira/browse/CB-4851
 Project: Apache Cordova
  Issue Type: Bug
  Components: Android
Affects Versions: 3.0.0
Reporter: Dick van den Brink
Assignee: Joe Bowser
  Labels: android, storage

 According to the documentation the Storage API is provided in the core of 
 cordova, but it is removed from the Android Core.
 Documentation: 
 http://cordova.apache.org/docs/en/3.0.0/cordova_storage_storage.md.html#Storage
 {quote}As of version 3.0, access to Storage APIs is built into Cordova, and 
 does not require using the CLI to add plugins as described in The 
 Command-line Interface.
 {quote}
 I did add the xml to the config page but I get the following error:
 {quote}
 Error adding plugin org.apache.cordova.Storage.
 exec() call to unknown plugin: Storage
 java.lang.ClassNotFoundException: org.apache.cordova.Storage
 at java.lang.Class.classForName(Native Method)
 at java.lang.Class.forName(Class.java:217)
 at java.lang.Class.forName(Class.java:172)
 at org.apache.cordova.PluginEntry.getClassByName(PluginEntry.java:117)
 {quote}
 Is the documentation wrong or is the Storage class incorrectly deleted?
 Note: the storage code is still provided in cordova.js, but not in the jar. 
 Also the Java code is in the 2.9 branch. It is deleted in the commit with 
 sha1 id: adcbd879c846dd3f7a3db960a3c7af14acbbda41

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Created] (CB-4872) Create os/sdk version scripts for engine tag

2013-09-18 Thread Tim Kim (JIRA)
Tim Kim created CB-4872:
---

 Summary: Create os/sdk version scripts for engine tag
 Key: CB-4872
 URL: https://issues.apache.org/jira/browse/CB-4872
 Project: Apache Cordova
  Issue Type: New Feature
  Components: Android, BlackBerry, iOS, Plugman, Windows 8, WP7, WP8
Affects Versions: 3.0.0
Reporter: Tim Kim
Assignee: Tim Kim
Priority: Minor
 Fix For: 3.2.0


The engine tag is now able to check any of Cordova components's version so it's 
time to implement the OS/SDK version scripts. This will allow plugin authors to 
specify what version of OS/SDK is needed using the engine tag in the 
plugin.xml.

eg,
engines 
  engine name=apple-xcode version==4.6.3/
  engine name=apple-ios-sdk version==6.1/
  engine name=android-sdk version==17/
/engines

These scripts will be listed in the default engines within Plugman so that a 
user may easily reference them in the engine tag without having to provide a 
location/platform attribute in the engine tag:
https://git-wip-us.apache.org/repos/asf?p=cordova-plugman.git;a=blob;f=src/util/default-engines.js;h=4fd4a657b9cf6b494fece8b914c7c1ea511e3ca6;hb=1fa97a4161410f411e115362c293d88180319d9d

Related to this ticket: https://issues.apache.org/jira/browse/CB-4036





--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Comment Edited] (CB-4851) Android Storage API

2013-09-18 Thread Joe Bowser (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-4851?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13771255#comment-13771255
 ] 

Joe Bowser edited comment on CB-4851 at 9/18/13 9:26 PM:
-

The key/value pair is still present in Cordova, but WebSQL is still a plugin.  
However, it's not currently working properly on Android 4.x due to conflicts 
with localStorage and WebSQL namespaces.  You still have to install the plugin 
if you choose to use it for your application.

  was (Author: bowserj):
The key/value pair is still present in Cordova, but WebSQL is still a 
plugin.  However, it's not currently working properly on Android 4.x due to 
conflicts with localStorage and WebSQL namespaces.
  
 Android Storage API
 ---

 Key: CB-4851
 URL: https://issues.apache.org/jira/browse/CB-4851
 Project: Apache Cordova
  Issue Type: Bug
  Components: Android
Affects Versions: 3.0.0
Reporter: Dick van den Brink
Assignee: Joe Bowser
  Labels: android, storage

 According to the documentation the Storage API is provided in the core of 
 cordova, but it is removed from the Android Core.
 Documentation: 
 http://cordova.apache.org/docs/en/3.0.0/cordova_storage_storage.md.html#Storage
 {quote}As of version 3.0, access to Storage APIs is built into Cordova, and 
 does not require using the CLI to add plugins as described in The 
 Command-line Interface.
 {quote}
 I did add the xml to the config page but I get the following error:
 {quote}
 Error adding plugin org.apache.cordova.Storage.
 exec() call to unknown plugin: Storage
 java.lang.ClassNotFoundException: org.apache.cordova.Storage
 at java.lang.Class.classForName(Native Method)
 at java.lang.Class.forName(Class.java:217)
 at java.lang.Class.forName(Class.java:172)
 at org.apache.cordova.PluginEntry.getClassByName(PluginEntry.java:117)
 {quote}
 Is the documentation wrong or is the Storage class incorrectly deleted?
 Note: the storage code is still provided in cordova.js, but not in the jar. 
 Also the Java code is in the 2.9 branch. It is deleted in the commit with 
 sha1 id: adcbd879c846dd3f7a3db960a3c7af14acbbda41

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (CB-4872) Create os/sdk version scripts for engine tag

2013-09-18 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-4872?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13771261#comment-13771261
 ] 

ASF subversion and git services commented on CB-4872:
-

Commit 782b951dfb9d314fbb3f827fcd3b44a0c9696d67 in branch refs/heads/sdkCheck 
from [~timkim]
[ https://git-wip-us.apache.org/repos/asf?p=cordova-ios.git;h=782b951 ]

[CB-4872] - added iOS sdk version scripts


 Create os/sdk version scripts for engine tag
 

 Key: CB-4872
 URL: https://issues.apache.org/jira/browse/CB-4872
 Project: Apache Cordova
  Issue Type: New Feature
  Components: Android, BlackBerry, iOS, Plugman, Windows 8, WP7, WP8
Affects Versions: 3.0.0
Reporter: Tim Kim
Assignee: Tim Kim
Priority: Minor
 Fix For: 3.2.0


 The engine tag is now able to check any of Cordova components's version so 
 it's time to implement the OS/SDK version scripts. This will allow plugin 
 authors to specify what version of OS/SDK is needed using the engine tag in 
 the plugin.xml.
 eg,
 engines 
   engine name=apple-xcode version==4.6.3/
   engine name=apple-ios-sdk version==6.1/
   engine name=android-sdk version==17/
 /engines
 These scripts will be listed in the default engines within Plugman so that a 
 user may easily reference them in the engine tag without having to provide a 
 location/platform attribute in the engine tag:
 https://git-wip-us.apache.org/repos/asf?p=cordova-plugman.git;a=blob;f=src/util/default-engines.js;h=4fd4a657b9cf6b494fece8b914c7c1ea511e3ca6;hb=1fa97a4161410f411e115362c293d88180319d9d
 Related to this ticket: https://issues.apache.org/jira/browse/CB-4036

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Resolved] (CB-4856) When requesting access to the persistent filesystem via cordova in an hybrid web app environment, the initialisation immediately fails

2013-09-18 Thread Joe Bowser (JIRA)

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

Joe Bowser resolved CB-4856.


Resolution: Incomplete

We haven't heard from this person since, it's possible that the plugin wasn't 
installed.  Closing for now.

 When requesting access to the persistent filesystem via cordova in an hybrid 
 web app environment, the initialisation immediately fails
 --

 Key: CB-4856
 URL: https://issues.apache.org/jira/browse/CB-4856
 Project: Apache Cordova
  Issue Type: Bug
  Components: Android, Plugin File
Affects Versions: 3.0.0
 Environment: Platform: Cordova 3.0.0, Jquery mobile 1.3, running on 
 Android 4.1.2
 API: File
Reporter: Shazron Abdullah
Assignee: Joe Bowser

 Preparation: all done according to API doc (yes, persmissions are set and so 
 on)
 From André Fiedler in cordova-dev ML:
 Issue:
 When requesting access to the persistent filesystem via cordova in an hybrid 
 web app environment, the initialisation immediately fails as follows: 
 Straight when calling window.requestFileSystem(LocalFileSystem.PERSISTENT, 
 0, gotFS, fail); (where gotFS and fail are both functions), I get the error 
 ReferenceError: LocalFileSystem is not defined. Even after searching google 
 and many posts, I cannot find a successful solution for Cordova 3.0.0, 
 although lots of people discuss this behaviour.
 Could you give me any hint regarding further steps? Has this issue already 
 been reported to you and is there a solution? When will any solution be 
 included in one oft the next releases? Andi is there a release date for the 
 next official cordova release, including any fix?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (CB-2459) Customize InAppBrowser location bar

2013-09-18 Thread Joe Bowser (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-2459?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13771293#comment-13771293
 ] 

Joe Bowser commented on CB-2459:


OK, this needs to be revisited.  I'm temped to close this one and open a new 
issue regarding UI.

 Customize InAppBrowser location bar
 ---

 Key: CB-2459
 URL: https://issues.apache.org/jira/browse/CB-2459
 Project: Apache Cordova
  Issue Type: Improvement
  Components: Android
Affects Versions: 2.4.0
 Environment: Android  Apache Cordova 2.4
Reporter: Ricardo Quiros
Assignee: Joe Bowser

 Add functions for customizing InAppBrowser plugin: show/hide each component 
 or change the text for the Done button. I need to customize this location 
 bar showing only the Done button with a text in Spanish (and probably, in 
 other languages).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Resolved] (CB-4850) Write the device UUID only when it does not exist

2013-09-18 Thread Jesse MacFadyen (JIRA)

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

Jesse MacFadyen resolved CB-4850.
-

Resolution: Fixed

 Write the device UUID only when it does not exist
 -

 Key: CB-4850
 URL: https://issues.apache.org/jira/browse/CB-4850
 Project: Apache Cordova
  Issue Type: Improvement
  Components: WP7, WP8
Affects Versions: 3.0.0
 Environment: Any
Reporter: Jonathan Naguin
Assignee: Jesse MacFadyen
Priority: Minor

 Currently, the device UUID is writen back to the IsolatedStorageFile in every 
 run even when it is not necessary. 
 On CordovaView.xaml.cs:
 {code}
 string deviceUUID = ;
 using (IsolatedStorageFile appStorage = 
 IsolatedStorageFile.GetUserStoreForApplication())
 {
 try
 {
 IsolatedStorageFileStream fileStream = new 
 IsolatedStorageFileStream(DeviceID.txt, FileMode.Open, FileAccess.Read, 
 appStorage);
 using (StreamReader reader = new StreamReader(fileStream))
 {
 deviceUUID = reader.ReadLine();
 }
 }
 catch (Exception /*ex*/)
 {
 deviceUUID = Guid.NewGuid().ToString();
 }
 Debug.WriteLine(Updating IsolatedStorage for APP:DeviceID ::  + 
 deviceUUID);
 IsolatedStorageFileStream file = new 
 IsolatedStorageFileStream(DeviceID.txt, FileMode.Create, FileAccess.Write, 
 appStorage);
 using (StreamWriter writeFile = new StreamWriter(file))
 {
 writeFile.WriteLine(deviceUUID);
 writeFile.Close();
 }
 }
 {code}
 The writing code should be moved into the catch after creating a new one as:
 {code}
 catch (Exception /*ex*/)
 {
 deviceUUID = Guid.NewGuid().ToString();
 IsolatedStorageFileStream file = new 
 IsolatedStorageFileStream(DeviceID.txt, FileMode.Create, FileAccess.Write, 
 appStorage);
 using (StreamWriter writeFile = new StreamWriter(file))
 {
 writeFile.WriteLine(deviceUUID);
 writeFile.Close();
 }
 }
 {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Reopened] (CB-2459) Customize InAppBrowser location bar

2013-09-18 Thread Joe Bowser (JIRA)

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

Joe Bowser reopened CB-2459:



Acutally, I'll re-open it with that focus.

 Customize InAppBrowser location bar
 ---

 Key: CB-2459
 URL: https://issues.apache.org/jira/browse/CB-2459
 Project: Apache Cordova
  Issue Type: Improvement
  Components: Android
Affects Versions: 2.4.0
 Environment: Android  Apache Cordova 2.4
Reporter: Ricardo Quiros
Assignee: Joe Bowser

 Add functions for customizing InAppBrowser plugin: show/hide each component 
 or change the text for the Done button. I need to customize this location 
 bar showing only the Done button with a text in Spanish (and probably, in 
 other languages).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Comment Edited] (CB-2459) Customize InAppBrowser location bar

2013-09-18 Thread Joe Bowser (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-2459?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13771303#comment-13771303
 ] 

Joe Bowser edited comment on CB-2459 at 9/18/13 10:04 PM:
--

Actually, I'll re-open it with that focus.

  was (Author: bowserj):
Acutally, I'll re-open it with that focus.
  
 Customize InAppBrowser location bar
 ---

 Key: CB-2459
 URL: https://issues.apache.org/jira/browse/CB-2459
 Project: Apache Cordova
  Issue Type: Improvement
  Components: Android
Affects Versions: 2.4.0
 Environment: Android  Apache Cordova 2.4
Reporter: Ricardo Quiros
Assignee: Joe Bowser

 Add functions for customizing InAppBrowser plugin: show/hide each component 
 or change the text for the Done button. I need to customize this location 
 bar showing only the Done button with a text in Spanish (and probably, in 
 other languages).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Resolved] (CB-4090) Broken Navigator.notification calls in 2.9

2013-09-18 Thread Jesse MacFadyen (JIRA)

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

Jesse MacFadyen resolved CB-4090.
-

Resolution: Fixed

 Broken Navigator.notification calls in 2.9
 --

 Key: CB-4090
 URL: https://issues.apache.org/jira/browse/CB-4090
 Project: Apache Cordova
  Issue Type: Bug
  Components: Plugin Dialogs, WP7, WP8
Affects Versions: 2.9.0
Reporter: Jesse MacFadyen
Assignee: Jesse MacFadyen
Priority: Blocker

 The 2.9.0 implementation is broken.
 a) the permission is missing from the default config.xml
 b) the button handler crashes because of a failed cast
 This probably need to be fixed in the 2.9.x branch as well as master

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Resolved] (CB-4681) jQuery Ajax callbacks not executed

2013-09-18 Thread Jesse MacFadyen (JIRA)

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

Jesse MacFadyen resolved CB-4681.
-

Resolution: Fixed

465eed51ba2a6f503255079eadd46d91ed7f2a00
Available in the 3.1.0-rc1

 jQuery Ajax callbacks not executed
 --

 Key: CB-4681
 URL: https://issues.apache.org/jira/browse/CB-4681
 Project: Apache Cordova
  Issue Type: Bug
  Components: WP7, WP8
Affects Versions: 3.0.0
 Environment: Windows 8 Professional
Reporter: Jonathan Naguin
Assignee: Jesse MacFadyen
Priority: Critical
 Fix For: 3.1.0


 I have an Ajax request to a server, but the _success_ callback or any 
 callback is not executed even if the server respond with a 200 code (I saw 
 the logs using Wireshark).
 {code}
 $.ajax({
 url: 'http://example.com',
 data: { foo: 'bar' },
 dataType: 'json',
 success: function (data) { 
 console.log(data); 
 },
 error: function(){
 console.log(Error); 
 },
 complete: function(){
 console.log(Complete);
 }
 });
 {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (CB-3427) Windows Phone 8 FileEntry.getMetadata returns a null Metadata.modificationTime

2013-09-18 Thread Jesse MacFadyen (JIRA)

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

Jesse MacFadyen updated CB-3427:


Component/s: WP7
 Plugin File

 Windows Phone 8 FileEntry.getMetadata returns a null Metadata.modificationTime
 --

 Key: CB-3427
 URL: https://issues.apache.org/jira/browse/CB-3427
 Project: Apache Cordova
  Issue Type: Bug
  Components: Plugin File, WP7, WP8
Affects Versions: 2.5.0, 2.6.0, 2.7.0
 Environment: Visual Studio 2012, Windows 8 Enterprise x64 bit
Reporter: Kelvin Dart
Assignee: Jesse MacFadyen

 Whenever I attempt to get the modificationDate in FileEntry.getMetadata in 
 Windows Phone 8, I receive a Metadata object back in the success function, 
 but the moficiationDate is null.
 The same chunk of code runs fine in Android and iOS. I can provide an example 
 if required...

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (CB-3427) Windows Phone 8 FileEntry.getMetadata returns a null Metadata.modificationTime

2013-09-18 Thread Jesse MacFadyen (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-3427?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13771337#comment-13771337
 ] 

Jesse MacFadyen commented on CB-3427:
-

Yes, an example, or better yet a failing test would be great.

 Windows Phone 8 FileEntry.getMetadata returns a null Metadata.modificationTime
 --

 Key: CB-3427
 URL: https://issues.apache.org/jira/browse/CB-3427
 Project: Apache Cordova
  Issue Type: Bug
  Components: WP8
Affects Versions: 2.5.0, 2.6.0, 2.7.0
 Environment: Visual Studio 2012, Windows 8 Enterprise x64 bit
Reporter: Kelvin Dart
Assignee: Jesse MacFadyen

 Whenever I attempt to get the modificationDate in FileEntry.getMetadata in 
 Windows Phone 8, I receive a Metadata object back in the success function, 
 but the moficiationDate is null.
 The same chunk of code runs fine in Android and iOS. I can provide an example 
 if required...

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Assigned] (CB-4671) Add Gesture callback handlers to WebView and delegate to plugins

2013-09-18 Thread Joe Bowser (JIRA)

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

Joe Bowser reassigned CB-4671:
--

Assignee: Ian Clelland  (was: Joe Bowser)

Can you prove that this won't break the WebView w.r.t. Javascript Touch API? 

 Add Gesture callback handlers to WebView and delegate to plugins
 

 Key: CB-4671
 URL: https://issues.apache.org/jira/browse/CB-4671
 Project: Apache Cordova
  Issue Type: Improvement
  Components: Android
Reporter: Ian Clelland
Assignee: Ian Clelland

 From http://callback.markmail.org/thread/lrfiy5j7o5tv5ma5, we can enable 
 gesture-recognition in plugins, if we override WebView.onTouchEvent and 
 delegate it through PluginManager to the plugins.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Resolved] (CB-2303) Add event for script errors

2013-09-18 Thread Joe Bowser (JIRA)

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

Joe Bowser resolved CB-2303.


Resolution: Won't Fix

This was abandoned, but I believe this is more trouble than it is worth at this 
point. I'm going to close this for now.

 Add event for script errors
 ---

 Key: CB-2303
 URL: https://issues.apache.org/jira/browse/CB-2303
 Project: Apache Cordova
  Issue Type: New Feature
  Components: Android
Reporter: Jonathan Prince
Assignee: Joe Bowser

 Android webview does not support window.onerror for catching unexpected 
 javascript errors. This makes cross platform error logging and analysis very 
 difficult (especially on released software).
 A new event could easily be added to enable developers to track javascript 
 errors.
 e.g. in CordovaChromeClient.java change the onConsoleMessage override from 
 {code:title=CordovaChromeClient.java - Current method|borderStyle=solid}
 @TargetApi(8)
 @Override
 public boolean onConsoleMessage(ConsoleMessage consoleMessage)
 {
 if (consoleMessage.message() != null)
 LOG.d(TAG, consoleMessage.message());
 return super.onConsoleMessage(consoleMessage);
 }
 {code}
 All this currently does is re-log messages. Changing the method to the below 
 also triggers a scripterror event for errors (this is just proof of concept 
 code but works correctly). Developers can easily map this event to call a 
 standard error handler.
 {code:title=CordovaChromeClient.java - Suggested method|borderStyle=solid}
 @TargetApi(8)
 @Override
 public boolean onConsoleMessage(ConsoleMessage consoleMessage)
 {
 if (consoleMessage.message() != null)
 {
 if (consoleMessage.messageLevel().name() == ERROR)
 {
   String errorUrl = 
 javascript:cordova.fireDocumentEvent('scripterror', {msg: \ + 
 consoleMessage.message() + \, line:  + consoleMessage.lineNumber() + , 
 url: \ + consoleMessage.sourceId() + \});;
 this.appView.loadUrl(errorUrl);
   LOG.e(TAG, consoleMessage.message() +  line  + 
 consoleMessage.lineNumber() +  in  + consoleMessage.sourceId());
 }
 else
 {
 LOG.d(TAG, consoleMessage.message());
 }
 }
 return super.onConsoleMessage(consoleMessage);
 }
 {code}
 The only quirk I have found with this approach is that javascript calls to 
 console.error also trigger the scripterror event. This actually seems logical 
 but developers should be aware of it.
 Otherwise; unexpected script errors and thrown errors trigger the event and 
 handled errors (in try...catch blocks) don't.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (CB-2298) Add Web Worker support for Android

2013-09-18 Thread Joe Bowser (JIRA)

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

Joe Bowser updated CB-2298:
---

Priority: Minor  (was: Major)

This isn't a priority right now.  The likelihood of this happening is very low 
given how little we can do with the Android WebView.

 Add Web Worker support for Android
 --

 Key: CB-2298
 URL: https://issues.apache.org/jira/browse/CB-2298
 Project: Apache Cordova
  Issue Type: Wish
  Components: Android
Reporter: Jonathan Prince
Assignee: Joe Bowser
Priority: Minor

 Web workers allow javascript processing to occur in the background. This 
 prevents the UI being frozen.
 Workers are supported on iOS 5, Windows Phone 8 and BB7 (according to 
 caniuse.com).
 This feature is mentioned on the Cordova roadmap 
 (http://wiki.apache.org/cordova/RoadmapProjects - webworkers with a browser 
 ctx) and it would be very useful to enable cross-platform background 
 processing to support all major platforms.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (CB-3020) HideKeyboardFormAccessoryBar and KeyboardShrinksView show white bar instead of removing it

2013-09-18 Thread Tom Wilson (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-3020?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13771391#comment-13771391
 ] 

Tom Wilson commented on CB-3020:


FYI, I've noticed that if you download xcode 5 and update the project with the 
recommended settings, the window resize stops working. 

http://imgur.com/8UbsLFL

I verified by creating a new phonegap ios project, running initially to verify 
everything worked, then updating project settings and re-testing.  The view 
just never resizes.

After update, I also get a bunch of new warnings, but no fatal errors.

 HideKeyboardFormAccessoryBar and KeyboardShrinksView show white bar instead 
 of removing it
 --

 Key: CB-3020
 URL: https://issues.apache.org/jira/browse/CB-3020
 Project: Apache Cordova
  Issue Type: Bug
  Components: iOS
Affects Versions: 2.6.0, 3.0.0
 Environment: ios 6.1.3
Reporter: Horst Perfect
Assignee: Shazron Abdullah
Priority: Minor
  Labels: bug, ios, ios6.1.3

 I use phonegap 2.6 with the two new preferences HideKeyboardFormAccessoryBar 
 KeyboardShrinksView set to true. Instead of the AccessoryBar a white bar 
 appears ([screenshot|http://i.stack.imgur.com/3fgV8.png]).
 This is just happening when i set *both* of the preferences to true. When i 
 just set the AccessoryBar preference to true the bar disappears as planned.
 Horst

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (CB-4858) Android InAppBrowser does not function properly on 4.3

2013-09-18 Thread Andrew Grieve (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-4858?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13771537#comment-13771537
 ] 

Andrew Grieve commented on CB-4858:
---

To fix the updateUrl() method, I think we should change relative URL resolving 
to be done in JS via require('cordova/urlutil').makeAbsolute(url)

 Android InAppBrowser does not function properly on 4.3
 --

 Key: CB-4858
 URL: https://issues.apache.org/jira/browse/CB-4858
 Project: Apache Cordova
  Issue Type: Bug
  Components: Android, Plugin InAppBrowser
Affects Versions: 3.0.0
 Environment: Android 4.3
Reporter: Marcus Pridham
Assignee: David Kemp

 Try using the full example for the executeScript on a 4.3 emulator.
 http://cordova.apache.org/docs/en/3.0.0/cordova_inappbrowser_inappbrowser.md.html#executeScript
 You will get a syntax issue around the replaceHeaderImage function it is 
 missing a }; at the end of the executeScript call.
 Correct function should look like:
 {code}
 function replaceHeaderImage() {
 iabRef.executeScript({
 code: var img=document.querySelector('#header img'); 
 img.src='http://cordova.apache.org/images/cordova_bot.png';
 }, function() {
 alert(Image Element Successfully Hijacked);
 });
 }
 {code}
 Anyway if you run this sample it will fail on a 4.3 emulator with the 
 following stack trace but it will work fine on a 4.0 emulator.
 {code}
 09-17 15:45:34.236: W/webview_proxy(2553): java.lang.Throwable: Warning: A 
 WebView method was called on thread 'WebViewCoreThread'. All WebView methods 
 must be called on the UI thread. Future versions of WebView may not support 
 use on other threads.
 09-17 15:45:34.236: W/webview_proxy(2553):at 
 android.webkit.WebView.checkThread(WebView.java:1918)
 09-17 15:45:34.236: W/webview_proxy(2553):at 
 android.webkit.WebView.loadUrl(WebView.java:771)
 09-17 15:45:34.236: W/webview_proxy(2553):at 
 org.apache.cordova.inappbrowser.InAppBrowser.injectDeferredObject(InAppBrowser.java:245)
 09-17 15:45:34.236: W/webview_proxy(2553):at 
 org.apache.cordova.inappbrowser.InAppBrowser.execute(InAppBrowser.java:169)
 09-17 15:45:34.236: W/webview_proxy(2553):at 
 org.apache.cordova.CordovaPlugin.execute(CordovaPlugin.java:65)
 09-17 15:45:34.236: W/webview_proxy(2553):at 
 org.apache.cordova.PluginManager.execHelper(PluginManager.java:229)
 09-17 15:45:34.236: W/webview_proxy(2553):at 
 org.apache.cordova.PluginManager.exec(PluginManager.java:214)
 09-17 15:45:34.236: W/webview_proxy(2553):at 
 org.apache.cordova.ExposedJsApi.exec(ExposedJsApi.java:53)
 09-17 15:45:34.236: W/webview_proxy(2553):at 
 android.webkit.JWebCoreJavaBridge.setNetworkOnLine(Native Method)
 09-17 15:45:34.236: W/webview_proxy(2553):at 
 android.webkit.JWebCoreJavaBridge.setNetworkOnLine(Native Method)
 09-17 15:45:34.236: W/webview_proxy(2553):at 
 android.webkit.WebViewCore$EventHub$1.handleMessage(WebViewCore.java:1431)
 09-17 15:45:34.236: W/webview_proxy(2553):at 
 android.os.Handler.dispatchMessage(Handler.java:99)
 09-17 15:45:34.236: W/webview_proxy(2553):at 
 android.os.Looper.loop(Looper.java:137)
 09-17 15:45:34.236: W/webview_proxy(2553):at 
 android.webkit.WebViewCore$WebCoreThread.run(WebViewCore.java:814)
 09-17 15:45:34.236: W/webview_proxy(2553):at 
 java.lang.Thread.run(Thread.java:841)
 09-17 15:45:34.236: W/System.err(2553): java.lang.RuntimeException: 
 java.lang.Throwable: Warning: A WebView method was called on thread 
 'WebViewCoreThread'. All WebView methods must be called on the UI thread. 
 Future versions of WebView may not support use on other threads.
 09-17 15:45:34.246: W/System.err(2553):   at 
 android.webkit.WebView.checkThread(WebView.java:1927)
 09-17 15:45:34.246: W/System.err(2553):   at 
 android.webkit.WebView.loadUrl(WebView.java:771)
 09-17 15:45:34.246: W/System.err(2553):   at 
 org.apache.cordova.inappbrowser.InAppBrowser.injectDeferredObject(InAppBrowser.java:245)
 09-17 15:45:34.246: W/System.err(2553):   at 
 org.apache.cordova.inappbrowser.InAppBrowser.execute(InAppBrowser.java:169)
 09-17 15:45:34.246: W/System.err(2553):   at 
 org.apache.cordova.CordovaPlugin.execute(CordovaPlugin.java:65)
 09-17 15:45:34.246: W/System.err(2553):   at 
 org.apache.cordova.PluginManager.execHelper(PluginManager.java:229)
 09-17 15:45:34.246: W/System.err(2553):   at 
 org.apache.cordova.PluginManager.exec(PluginManager.java:214)
 09-17 15:45:34.246: W/System.err(2553):   at 
 org.apache.cordova.ExposedJsApi.exec(ExposedJsApi.java:53)
 09-17 15:45:34.246: W/System.err(2553):   at 
 android.webkit.JWebCoreJavaBridge.setNetworkOnLine(Native Method)
 09-17 15:45:34.246: W/System.err(2553):