[jira] [Created] (CB-2051) geolocation.getCurrentPosition() returns PositionError.TIMEOUT with Lenovo mobile

2012-12-12 Thread andrew (JIRA)
andrew created CB-2051:
--

 Summary: geolocation.getCurrentPosition() returns 
PositionError.TIMEOUT with Lenovo mobile
 Key: CB-2051
 URL: https://issues.apache.org/jira/browse/CB-2051
 Project: Apache Cordova
  Issue Type: Bug
  Components: Android
Affects Versions: 2.2.0
Reporter: andrew
Assignee: Joe Bowser
Priority: Minor


always return timeout under wifi or gps. But other apps can get gps at the same 
time.

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


Re: [ATTN:Committers] Feedback on automating TLP move

2012-12-12 Thread Patrick Mueller
On Tue, Dec 11, 2012 at 5:27 PM, Jukka Zitting jukka.zitt...@gmail.comwrote:

 ...

 Before I drop the remaining ones, it would be good if the following
 pull requests could be checked and possibly copied to the cordova-xxx
 repositories or to Jira issues:

 https://github.com/apache/incubator-cordova-js/pulls
 https://github.com/apache/incubator-cordova-labs/pulls
 https://github.com/apache/incubator-cordova-docs/pulls
 https://github.com/apache/incubator-cordova-ios/pulls
 https://github.com/apache/incubator-cordova-android/pulls
 https://github.com/apache/incubator-cordova-mobile-spec/pulls
 https://github.com/apache/incubator-cordova-weinre/pulls


I'm in the process of cleaning up, collecting patches, etc, for the weinre
pulls.  Suggest that we not delete any of these until someone claims that
they pulls have been processed.

I should have the weinre ones done today, will post a message back here
when I'm done.

-- 
Patrick Mueller
http://muellerware.org


[jira] [Created] (CB-2052) add option to pass the config file by name

2012-12-12 Thread Patrick Mueller (JIRA)
Patrick Mueller created CB-2052:
---

 Summary: add option to pass the config file by name
 Key: CB-2052
 URL: https://issues.apache.org/jira/browse/CB-2052
 Project: Apache Cordova
  Issue Type: New Feature
  Components: weinre
Reporter: Patrick Mueller
Assignee: Patrick Mueller


From Corey Gilmore via 
https://github.com/apache/incubator-cordova-weinre/pull/13

Original text:

Add the --optionsFile cli parameter to allow passing the path to an options 
file, which currently is hardcoded to ~/.weinre/server.properties. This makes 
makes it easier to run as a Windows service using something like this:

Windows Registry Editor Version 5.00

{noformat}
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\services\weinre]
Type=dword:0010
Start=dword:0002
ErrorControl=dword:0001
ImagePath=C:\\Path\\To\\srvany.exe
DisplayName=weinre
WOW64=dword:0001
ObjectName=LocalSystem

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\services\weinre\Parameters]
Application=\C:\\Path\\To\\nodejs\\node.exe\ 
C:\\Path\\To\\node_modules\\weinre\\weinre  --optionsFile 
C:\\Path\\To\\server.properties
{noformat}


--
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-2052) add option to pass the config file by name

2012-12-12 Thread Patrick Mueller (JIRA)

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

Patrick Mueller updated CB-2052:


Attachment: 13.patch

This is the original patch from Corey's pull request.

 add option to pass the config file by name
 --

 Key: CB-2052
 URL: https://issues.apache.org/jira/browse/CB-2052
 Project: Apache Cordova
  Issue Type: New Feature
  Components: weinre
Reporter: Patrick Mueller
Assignee: Patrick Mueller
 Attachments: 13.patch


 From Corey Gilmore via 
 https://github.com/apache/incubator-cordova-weinre/pull/13
 Original text:
 Add the --optionsFile cli parameter to allow passing the path to an options 
 file, which currently is hardcoded to ~/.weinre/server.properties. This makes 
 makes it easier to run as a Windows service using something like this:
 Windows Registry Editor Version 5.00
 {noformat}
 [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\services\weinre]
 Type=dword:0010
 Start=dword:0002
 ErrorControl=dword:0001
 ImagePath=C:\\Path\\To\\srvany.exe
 DisplayName=weinre
 WOW64=dword:0001
 ObjectName=LocalSystem
 [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\services\weinre\Parameters]
 Application=\C:\\Path\\To\\nodejs\\node.exe\ 
 C:\\Path\\To\\node_modules\\weinre\\weinre  --optionsFile 
 C:\\Path\\To\\server.properties
 {noformat}

--
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-2052) add option to pass the config file by name

2012-12-12 Thread Patrick Mueller (JIRA)

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

Patrick Mueller commented on CB-2052:
-

I like.

Coupla things though:

* --config sounds like a better option name
* that option should not be allowed in the config file itself; perhaps in the 
future it's inclusion in the config file could mean that you should include an 
ADDITIONAL config file, but that sounds ... complicated (to get all the cases 
right)
* config file should be reported at start up time, and in other diagnostic 
locations, like the other options
* should probably throw a fatal error if the specified config file can't be 
found/read

 add option to pass the config file by name
 --

 Key: CB-2052
 URL: https://issues.apache.org/jira/browse/CB-2052
 Project: Apache Cordova
  Issue Type: New Feature
  Components: weinre
Reporter: Patrick Mueller
Assignee: Patrick Mueller
 Attachments: 13.patch


 From Corey Gilmore via 
 https://github.com/apache/incubator-cordova-weinre/pull/13
 Original text:
 Add the --optionsFile cli parameter to allow passing the path to an options 
 file, which currently is hardcoded to ~/.weinre/server.properties. This makes 
 makes it easier to run as a Windows service using something like this:
 Windows Registry Editor Version 5.00
 {noformat}
 [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\services\weinre]
 Type=dword:0010
 Start=dword:0002
 ErrorControl=dword:0001
 ImagePath=C:\\Path\\To\\srvany.exe
 DisplayName=weinre
 WOW64=dword:0001
 ObjectName=LocalSystem
 [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\services\weinre\Parameters]
 Application=\C:\\Path\\To\\nodejs\\node.exe\ 
 C:\\Path\\To\\node_modules\\weinre\\weinre  --optionsFile 
 C:\\Path\\To\\server.properties
 {noformat}

--
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-1798) SecurityError when accessing localStorage et al in target

2012-12-12 Thread Patrick Mueller (JIRA)

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

Patrick Mueller updated CB-1798:


Attachment: 11.patch

Original patch from https://github.com/apache/incubator-cordova-weinre/pull/11 
, which may disappear soon, due to repo rename.

 SecurityError when accessing localStorage et al in target
 -

 Key: CB-1798
 URL: https://issues.apache.org/jira/browse/CB-1798
 Project: Apache Cordova
  Issue Type: Bug
  Components: weinre
Reporter: Patrick Mueller
Assignee: Patrick Mueller
 Attachments: 11.patch


 Turns out that accessing localStorage et al can throw SecurityError when 
 touched.  See: 
 http://www.w3.org/TR/webstorage/#security-localStorage
 Problem reported in relation to this pull request: 
 https://github.com/apache/incubator-cordova-weinre/pull/11

--
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-1234) Console should queue log messages if not connected

2012-12-12 Thread Patrick Mueller (JIRA)

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

Patrick Mueller updated CB-1234:


Attachment: 8.patch

The original patch from the pull request - 
https://github.com/apache/incubator-cordova-weinre/pull/8 - since that repo may 
disappear soon.

 Console should queue log messages if not connected
 --

 Key: CB-1234
 URL: https://issues.apache.org/jira/browse/CB-1234
 Project: Apache Cordova
  Issue Type: New Feature
  Components: weinre
Affects Versions: 2.0.0
Reporter: Matt Johnson
Assignee: Patrick Mueller
 Attachments: 8.patch


 Console log messages (log, debug, error, info, warn) from the target may be 
 lost if they are executed on the device before the remote connection is fully 
 complete.  These should be queued up if there is no remote connection (and 
 dequeued when one is acquired) so all log messages are retained.
 I have a pull request at 
 https://github.com/apache/incubator-cordova-weinre/pull/8 that does this as 
 well as turns the Console into a passthru so that all calls to Console still 
 act on the OriginalConsole as well as the RemoteConsole so that the target 
 behavior with weinre is unchanged.

--
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-2052) add option to pass the config file by name

2012-12-12 Thread Patrick Mueller (JIRA)

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

Patrick Mueller edited comment on CB-2052 at 12/12/12 5:42 PM:
---

13.patch is the original patch from Corey's pull request.

  was (Author: pmuellr):
This is the original patch from Corey's pull request.
  
 add option to pass the config file by name
 --

 Key: CB-2052
 URL: https://issues.apache.org/jira/browse/CB-2052
 Project: Apache Cordova
  Issue Type: New Feature
  Components: weinre
Reporter: Patrick Mueller
Assignee: Patrick Mueller
 Attachments: 13.patch


 From Corey Gilmore via 
 https://github.com/apache/incubator-cordova-weinre/pull/13
 Original text:
 Add the --optionsFile cli parameter to allow passing the path to an options 
 file, which currently is hardcoded to ~/.weinre/server.properties. This makes 
 makes it easier to run as a Windows service using something like this:
 Windows Registry Editor Version 5.00
 {noformat}
 [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\services\weinre]
 Type=dword:0010
 Start=dword:0002
 ErrorControl=dword:0001
 ImagePath=C:\\Path\\To\\srvany.exe
 DisplayName=weinre
 WOW64=dword:0001
 ObjectName=LocalSystem
 [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\services\weinre\Parameters]
 Application=\C:\\Path\\To\\nodejs\\node.exe\ 
 C:\\Path\\To\\node_modules\\weinre\\weinre  --optionsFile 
 C:\\Path\\To\\server.properties
 {noformat}

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


HTML5 PLatform

2012-12-12 Thread Jonathan Bond-Caron
-  Are there any plans to have an 'HTML5' platform/release?

I use the Cordova 'Android JavaScript' to do testing in the browser. Chrome
and Safari work nicely since they are both based on WebKit.

 

What I'd like really like is to use HTML5 features like
getUserMedia() to take a picture within the browser.

Here's some rough code I'm using:
http://pastebin.com/zKDpmV0d

 

-  Does anyone know a way to detect if a camera exists?

http://stackoverflow.com/questions/7736973/check-camera-existence-in-ios-pho
negap

http://stackoverflow.com/questions/12976725/checking-for-camera-access-in-ph
onegap?lq=1

 

Would be nice if Cordova could fill this 'gap', native platforms allow to
check this.

 



 

 

 

 



Re: [ATTN:Committers] Feedback on automating TLP move

2012-12-12 Thread Patrick Mueller
I've now handled all of the weinre pulls.

I've added a comment to all the pull requests that they may disappear soon,
in case the author notices and wants to do something.

Most had already been resolved, or didn't contain any critical code in the
pull request.  But three did.  I pulled the patches from the pull requests
via:

wget
https://github.com/apache/incubator-cordova-weinre/pull/[pull-number].patch

and attached to the relevant JIRA bug.

Here are the three pull requests I got the code for:

https://github.com/apache/incubator-cordova-weinre/pull/8
Console queues messages if no remote connection on the client side so
th...
https://issues.apache.org/jira/browse/CB-1234

https://github.com/apache/incubator-cordova-weinre/pull/11
Handle HTML5 API fails
https://issues.apache.org/jira/browse/CB-1798

https://github.com/apache/incubator-cordova-weinre/pull/13
Add optionsFile CLI paramater
https://issues.apache.org/jira/browse/CB-2052

On Wed, Dec 12, 2012 at 11:03 AM, Patrick Mueller pmue...@gmail.com wrote:


 I'm in the process of cleaning up, collecting patches, etc, for the weinre
 pulls.  Suggest that we not delete any of these until someone claims that
 they pulls have been processed.

 I should have the weinre ones done today, will post a message back here
 when I'm done.


-- 
Patrick Mueller
http://muellerware.org


Re: HTML5 PLatform

2012-12-12 Thread Joe Bowser
Please feel free to submit an issue on our issue tracker.  I'm not
entirely certain which feature you're asking for here, since it sounds
like you're asking for at least three features.

https://issues.apache.org/jira/browse/CB

On Wed, Dec 12, 2012 at 10:05 AM, Jonathan Bond-Caron jbo...@openmv.com wrote:
 -  Are there any plans to have an 'HTML5' platform/release?

 I use the Cordova 'Android JavaScript' to do testing in the browser. Chrome
 and Safari work nicely since they are both based on WebKit.



 What I'd like really like is to use HTML5 features like
 getUserMedia() to take a picture within the browser.

 Here's some rough code I'm using:
 http://pastebin.com/zKDpmV0d



 -  Does anyone know a way to detect if a camera exists?

 http://stackoverflow.com/questions/7736973/check-camera-existence-in-ios-pho
 negap

 http://stackoverflow.com/questions/12976725/checking-for-camera-access-in-ph
 onegap?lq=1



 Would be nice if Cordova could fill this 'gap', native platforms allow to
 check this.















[jira] [Commented] (CB-2051) geolocation.getCurrentPosition() returns PositionError.TIMEOUT with Lenovo mobile

2012-12-12 Thread Joe Bowser (JIRA)

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

Joe Bowser commented on CB-2051:


Do you have proper permissions on your application? By default, we use the 
Geolocation implementation in Android.

 geolocation.getCurrentPosition() returns PositionError.TIMEOUT with Lenovo 
 mobile
 -

 Key: CB-2051
 URL: https://issues.apache.org/jira/browse/CB-2051
 Project: Apache Cordova
  Issue Type: Bug
  Components: Android
Affects Versions: 2.2.0
Reporter: andrew
Assignee: Joe Bowser
Priority: Minor

 always return timeout under wifi or gps. But other apps can get gps at the 
 same time.

--
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-1970) MainViewController cannot override pathForResource

2012-12-12 Thread Michael Richey (JIRA)

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

Michael Richey commented on CB-1970:


Brilliant!  Thank you so much for implementing this fix so quickly.  After 
working with a number of open source projects, this has to be the fastest 
bugfix that I've ever seen.

 MainViewController cannot override pathForResource
 --

 Key: CB-1970
 URL: https://issues.apache.org/jira/browse/CB-1970
 Project: Apache Cordova
  Issue Type: Bug
  Components: iOS
Affects Versions: 2.2.0
 Environment: iOS 5.1, iOS Simulator 4.3, 5.0, 5.1  6.0
Reporter: Michael Richey
Assignee: Shazron Abdullah

 Attempting to override CDVCommandDelegateImpl.m pathForResource method within 
 MainViewController.m using the provided override methods, all overrides work 
 except for pathForResource.
 My simple test was to uncomment all of the overrides and add an NSLog to each 
 before the existing code.  Each of: getCommandInstance, execute, and 
 registerPlugin work as expected - but pathForResource executes the original 
 method from CDVCommandDelegateImpl.m

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


Re: pull request for coho

2012-12-12 Thread Steven Gill
Hey Marcel,

I have already made some of these changes for the rc1 release. I must have
forgot to push the changes to the apache repo. I will do that and review
your push request to see if I missed anything.

Cheers,
-Steve

On Wed, Dec 12, 2012 at 10:03 AM, Marcel Kinard cmarc...@gmail.com wrote:

 I've resubmitted this as 
 https://github.com/apache/**cordova-coho/pull/1https://github.com/apache/cordova-coho/pull/1since
  the incubator github repo is now gone.

 Steven, I think you'll want this for 2.3.0.

 -- Marcel Kinard


 On 12/7/2012 2:43 PM, Marcel Kinard wrote:

 I just submitted a pull request: https://github.com/apache/**
 incubator-cordova-coho/pull/3https://github.com/apache/incubator-cordova-coho/pull/3

 - add wp8 content
 - remove 'incubator' from the repo names
 - rename 'webworks' from the blackberry repo name
 - add changelog entries for docs, js, mobile-spec, hello-world
 - fix changelog generation when selecting a subset of platforms

 @stevengill, could you take a look and merge this in?


 I also noticed that the DISCLAIMER still has verbage about being an
 incubator project, but I didn't update that.

 -- Marcel Kinard






[jira] [Created] (CB-2053) camera.getPicture label displays 'Photos' when mediaType is set to Videos

2012-12-12 Thread Cory Thompson (JIRA)
Cory Thompson created CB-2053:
-

 Summary: camera.getPicture label displays 'Photos' when mediaType 
is set to Videos
 Key: CB-2053
 URL: https://issues.apache.org/jira/browse/CB-2053
 Project: Apache Cordova
  Issue Type: New Feature
  Components: iOS
Affects Versions: 2.2.0
Reporter: Cory Thompson
Assignee: Shazron Abdullah
Priority: Trivial


The label on the UIImagePickerController is set to 'Photos' regardless of 
mediaType. 

--
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-2053) camera.getPicture label displays 'Photos' when mediaType is set to Videos

2012-12-12 Thread Cory Thompson (JIRA)

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

Cory Thompson commented on CB-2053:
---

Changes:
https://github.com/coryjthompson/incubator-cordova-ios/commit/1bc7b62c614c9f0202a2866e540b2ff32aec7686

Any feedback would be awesome! 
Thank you 
:)

 camera.getPicture label displays 'Photos' when mediaType is set to Videos
 -

 Key: CB-2053
 URL: https://issues.apache.org/jira/browse/CB-2053
 Project: Apache Cordova
  Issue Type: New Feature
  Components: iOS
Affects Versions: 2.2.0
Reporter: Cory Thompson
Assignee: Shazron Abdullah
Priority: Trivial

 The label on the UIImagePickerController is set to 'Photos' regardless of 
 mediaType. 

--
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-2054) Iframe not working in Android4.0

2012-12-12 Thread nathiya (JIRA)
nathiya created CB-2054:
---

 Summary: Iframe not working in Android4.0
 Key: CB-2054
 URL: https://issues.apache.org/jira/browse/CB-2054
 Project: Apache Cordova
  Issue Type: Bug
  Components: Android
 Environment: Android4.0 corodova2.1.0 Jquerymobile 1.2.0
Reporter: nathiya
Assignee: Joe Bowser
 Fix For: 2.2.0


I am using IFrame for loading webpage .its working fine in android 2.2 but its 
not working in android 4.0.Input elements inside the webpage are disabled I 
can't able to type and click the button and then

I have searched and added scrolling=no in Iframe tag.Now i can able to type 
in the textbox(access input elements inside the webpage in Iframe) but i can't 
able to scroll to the left and right of the webpage.

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