[jira] [Commented] (CB-3530) PhoneGap app crashes on iOS with error "CDVWebViewDelegate: Navigation started when state=1"

2013-06-09 Thread Montyleena (JIRA)

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

Montyleena commented on CB-3530:


Thanks for the fix! when can we expect 2.8.0 with this fix?

> PhoneGap app crashes on iOS with error "CDVWebViewDelegate: Navigation 
> started when state=1"
> 
>
> Key: CB-3530
> URL: https://issues.apache.org/jira/browse/CB-3530
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: iOS, Plugin InAppBrowser
>Affects Versions: 2.7.0
> Environment: Mac OSX 10.8.3, XCode 4.6.2, iOS 6.1
>Reporter: Montyleena
>Assignee: Shazron Abdullah
>  Labels: crash, iOS,, inappbrowser,
> Fix For: 2.8.0
>
>
> I have a PhoneGap app on iOS which was working fine with PhoneGap 2.3.0 but 
> crashes with 2.7.0 with the following error:
> 2013-05-02 10:08:13.214 App[8896:c07] CDVWebViewDelegate: Navigation started 
> when state=1
> 2013-05-02 10:08:13.215 App[8896:c07] Failed to load webpage with error: 
> (null)
> The problem is:
> CDVWebViewDelegate.m: shouldStartLoadWithRequest() function: In switch case, 
> default: error code is being passed as nil
> and in CDVInAppBrowser.m: didFailLoadWithError() function, 
> error.localizedDescription is being referenced, which causes a crash as error 
> object is nil. 
> For now, i added a check in the above function to put default values for 
> error code if the error object is nil. I hope this crash is fixed in the next 
> PhoneGap release.

--
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-3742) CLI 'serve' command fails with 'cannot call method update_project' of undefined

2013-06-09 Thread Dan Moore (JIRA)

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

Dan Moore updated CB-3742:
--

Summary: CLI 'serve' command fails with 'cannot call method update_project' 
of undefined  (was: Android CLI 'serve' command fails with 'cannot call method 
update_project' of undefined)

Changed title because it occurs when developing for macs too.

> CLI 'serve' command fails with 'cannot call method update_project' of 
> undefined
> ---
>
> Key: CB-3742
> URL: https://issues.apache.org/jira/browse/CB-3742
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: CLI
>Affects Versions: 2.8.0
> Environment: I'm running 64 bit CentOS6.4 in virtual box (host system 
> is windows 7).
> I'm using node 0.10.10, jdk 1.7, ant 1.8, the latest and greatest android sdk 
> 22.0.1/version 17 of the build and platform tools).  cordova --version 
> returns 2.8.13.
> I have a colleague who is running macos 10.7.5 who received the same error 
> for 'cordova serve ios'
>Reporter: Dan Moore
>Assignee: Filip Maj
>
> I've successfully installed cordova-cli (thanks for this, by the way!) and 
> can create a project and add the android platform.
> These all work:
> 'cordova create kewlapp kewlapp'
> 'cordova -d platform android'
> 'cordova build android'
> The emulator works (with a started 2.3.3 emulator):
> 'cordova emulate android' 
> However, when I run 'cordova serve android' I get this error:
> [TypeError: Cannot call method 'update_project' of undefined]
> 'cordova -d serve android' has the same output.
> From digging around in the node src, it seems that the parser created on line 
> 125 of node_modules/cordova/src/serve.js is undefined for some reason.  I 
> can't imagine why, though I did notice that node_modules/cordova/platforms.js 
> has the android url pointing to cordova-ios.git.  Changing that to 
> android.git didn't resolve the issue.

--
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-3560) Use mirror system for downloads

2013-06-09 Thread Brian M Dube (JIRA)

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

Brian M Dube commented on CB-3560:
--

Where is the website source maintained?

> Use mirror system for downloads
> ---
>
> Key: CB-3560
> URL: https://issues.apache.org/jira/browse/CB-3560
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: Website
>Reporter: Brian M Dube
>Priority: Trivial
>
> Links to download Apache Cordova should not point directly to apache.org. 
> There are scripts to help leverage the mirror system.
> http://www.apache.org/dev/mirrors.html
> http://www.apache.org/dev/release-download-pages

--
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-3742) Android CLI 'serve' command fails with 'cannot call method update_project' of undefined

2013-06-09 Thread Dan Moore (JIRA)

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

Dan Moore commented on CB-3742:
---

Glad to help.  I just ran npm update cordova and 2.8.13 appears to be the 
latest and greatest version.

> Android CLI 'serve' command fails with 'cannot call method update_project' of 
> undefined
> ---
>
> Key: CB-3742
> URL: https://issues.apache.org/jira/browse/CB-3742
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: CLI
>Affects Versions: 2.8.0
> Environment: I'm running 64 bit CentOS6.4 in virtual box (host system 
> is windows 7).
> I'm using node 0.10.10, jdk 1.7, ant 1.8, the latest and greatest android sdk 
> 22.0.1/version 17 of the build and platform tools).  cordova --version 
> returns 2.8.13.
> I have a colleague who is running macos 10.7.5 who received the same error 
> for 'cordova serve ios'
>Reporter: Dan Moore
>Assignee: Filip Maj
>
> I've successfully installed cordova-cli (thanks for this, by the way!) and 
> can create a project and add the android platform.
> These all work:
> 'cordova create kewlapp kewlapp'
> 'cordova -d platform android'
> 'cordova build android'
> The emulator works (with a started 2.3.3 emulator):
> 'cordova emulate android' 
> However, when I run 'cordova serve android' I get this error:
> [TypeError: Cannot call method 'update_project' of undefined]
> 'cordova -d serve android' has the same output.
> From digging around in the node src, it seems that the parser created on line 
> 125 of node_modules/cordova/src/serve.js is undefined for some reason.  I 
> can't imagine why, though I did notice that node_modules/cordova/platforms.js 
> has the android url pointing to cordova-ios.git.  Changing that to 
> android.git didn't resolve the issue.

--
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-2606) Add support for elements in config.xml

2013-06-09 Thread Gorkem ERCAN (JIRA)

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

Gorkem ERCAN commented on CB-2606:
--

I think there should be a /res/icon/ folder on the CLI project structure (with 
/res/splash reserved for splash screens). There is no reason to crowd the /www 
folder. the src attribute on the  can be just relative to the /res/icon/. 
I do not like the idea of forcing separate folders for specific platforms 
because it is something that we really do not need to force but if the 
developers chooses to do it we will be able to support anyway.

> Add support for  elements in config.xml
> -
>
> Key: CB-2606
> URL: https://issues.apache.org/jira/browse/CB-2606
> Project: Apache Cordova
>  Issue Type: Sub-task
>  Components: Docs
>Reporter: Filip Maj
>Assignee: Filip Maj
>
> This feature would add support for specifying the application icon by 
> changing values inside the {{config.xml}} document.
> Relevant details for Cordova:
> - {{}} elements _may_ have {{width}} and {{height}} attributes 
> representing the preferred size of the icon in CSS pixels.
> - {{}} elements _must_ have a {{src}} attribute, which contains a path 
> string relative to the {{www/}} folder (or equivalent) in the platform.
> See [the Widget Spec's section on 
> icons|http://www.w3.org/TR/widgets/#the-icon-element-and-its-attributes] for 
> specifics.

--
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-3747) InAppBrowser issues - sound still playing and fullscreen mode

2013-06-09 Thread yann (JIRA)

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

yann updated CB-3747:
-

Labels: Android  (was: )

> InAppBrowser issues - sound still playing and fullscreen mode
> -
>
> Key: CB-3747
> URL: https://issues.apache.org/jira/browse/CB-3747
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: Plugin InAppBrowser
>Affects Versions: 2.7.0
> Environment: PhoneGap Build
>Reporter: yann
>Assignee: Steve Gill
>Priority: Critical
>  Labels: Android
>   Original Estimate: 2,016h
>  Remaining Estimate: 2,016h
>
> Hi,
> I found 2 issues with InAppBrowser plugin :
> - video is still playing when InAppBrowser is closed by backbutton (it's OK 
> if you close InAppBrowser by the "done" button)
> - video playing into InAppBrowser can't be played in fullscreen mode => 
> nothing happens (the sound is still playing, but video is freezing)

--
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-3747) InAppBrowser issues - sound still playing and fullscreen mode

2013-06-09 Thread yann (JIRA)

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

yann updated CB-3747:
-

Remaining Estimate: 168h  (was: 2,016h)
 Original Estimate: 168h  (was: 2,016h)

> InAppBrowser issues - sound still playing and fullscreen mode
> -
>
> Key: CB-3747
> URL: https://issues.apache.org/jira/browse/CB-3747
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: Plugin InAppBrowser
>Affects Versions: 2.7.0
> Environment: PhoneGap Build
>Reporter: yann
>Assignee: Steve Gill
>Priority: Critical
>  Labels: Android
>   Original Estimate: 168h
>  Remaining Estimate: 168h
>
> Hi,
> I found 2 issues with InAppBrowser plugin :
> - video is still playing when InAppBrowser is closed by backbutton (it's OK 
> if you close InAppBrowser by the "done" button)
> - video playing into InAppBrowser can't be played in fullscreen mode => 
> nothing happens (the sound is still playing, but video is freezing)

--
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-3747) InAppBrowser issues - sound still playing and fullscreen mode

2013-06-09 Thread yann (JIRA)
yann created CB-3747:


 Summary: InAppBrowser issues - sound still playing and fullscreen 
mode
 Key: CB-3747
 URL: https://issues.apache.org/jira/browse/CB-3747
 Project: Apache Cordova
  Issue Type: Bug
  Components: Plugin InAppBrowser
Affects Versions: 2.7.0
 Environment: PhoneGap Build
Reporter: yann
Assignee: Steve Gill
Priority: Critical


Hi,

I found 2 issues with InAppBrowser plugin :
- video is still playing when InAppBrowser is closed by backbutton (it's OK if 
you close InAppBrowser by the "done" button)
- video playing into InAppBrowser can't be played in fullscreen mode => nothing 
happens (the sound is still playing, but video is freezing)

--
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-2397) iOS: Enable non-file:// startPages for CordovaView apps

2013-06-09 Thread Christoph Jerolimov (JIRA)

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

Christoph Jerolimov updated CB-2397:


Summary: iOS: Enable non-file:// startPages for CordovaView apps  (was: 
iOS: Enable non-URI startPages with small refactoring)

> iOS: Enable non-file:// startPages for CordovaView apps
> ---
>
> Key: CB-2397
> URL: https://issues.apache.org/jira/browse/CB-2397
> Project: Apache Cordova
>  Issue Type: Improvement
>  Components: iOS
>Affects Versions: 2.4.0
>Reporter: Christoph Jerolimov
>Priority: Minor
>
> Method {{CDVViewController viewDidLoad}} is really long and not extendable.
> At the beginning of this method the property {{startPage}} was transferred 
> into an {{appURL}} or an {{loadErr}}. Used at the very very end of this more 
> than 100 lines of code.
> To allow apps to extend the {{CDVViewController}} and load other content than 
> a simple URL please externalize the start code to something like 
> {{startRequest}}. No error handling, esp. no filesystem checks are needed 
> here.
> If it's required to show an "file not found" error it's better to implement 
> this in the {{webView:didFailLoadWithError:}} webview delegate callback.

--
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-3522) WP8: Calling contacts.Find() with partial options results in NullReferenceException

2013-06-09 Thread Kevin Boyle (JIRA)

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

Kevin Boyle resolved CB-3522.
-

Resolution: Fixed

> WP8: Calling contacts.Find() with partial options results in 
> NullReferenceException
> ---
>
> Key: CB-3522
> URL: https://issues.apache.org/jira/browse/CB-3522
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: WP8
>Affects Versions: 2.7.0
>Reporter: Kevin Boyle
>Assignee: Jesse MacFadyen
>Priority: Minor
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> WP8 library code doesn't deal with only specifying partial options. The 
> following code will cause a NullReferenceException and kill the app
> navigator.contacts.find(['id'], function (contacts) {
> alert('found')
> }, function (error) {
> alert('error')
> }, { multiple: true });

--
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-3746) WP8: Serializing Contacts can produce invalid JSON

2013-06-09 Thread Kevin Boyle (JIRA)
Kevin Boyle created CB-3746:
---

 Summary: WP8: Serializing Contacts can produce invalid JSON
 Key: CB-3746
 URL: https://issues.apache.org/jira/browse/CB-3746
 Project: Apache Cordova
  Issue Type: Bug
  Components: WP8
Affects Versions: 2.7.0
Reporter: Kevin Boyle
Assignee: Jesse MacFadyen


WP8 library code doesn't serialize the Notes field of a contact correctly and 
can result in invalid JSON

--
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-3522) WP8: Calling contacts.Find() with partial options results in NullReferenceException

2013-06-09 Thread Kevin Boyle (JIRA)

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

Kevin Boyle commented on CB-3522:
-

Issued a new PR in the correct place for mobile-spec autotests.

https://github.com/apache/cordova-mobile-spec/pull/29


> WP8: Calling contacts.Find() with partial options results in 
> NullReferenceException
> ---
>
> Key: CB-3522
> URL: https://issues.apache.org/jira/browse/CB-3522
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: WP8
>Affects Versions: 2.7.0
>Reporter: Kevin Boyle
>Assignee: Jesse MacFadyen
>Priority: Minor
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> WP8 library code doesn't deal with only specifying partial options. The 
> following code will cause a NullReferenceException and kill the app
> navigator.contacts.find(['id'], function (contacts) {
> alert('found')
> }, function (error) {
> alert('error')
> }, { multiple: true });

--
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-3387) deviceready doesn't fire in Chrome Ripple

2013-06-09 Thread Ramki G (JIRA)

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

Ramki G commented on CB-3387:
-

Starting app with the following query string fixed the issue for me:
 ?enableripple=cordova-2.0.0

Example url: http://localhost/work/myApp/www/?enableripple=cordova-2.0.0

==
Although deviceready event is fired, you might still see logs stating that the 
event is not fired. This, I assume, is because the app scripts are loaded 
before the ripple extension's content-scripts do their job (they re-load app in 
an iframe). Cordova loaded in the parent page logs messages like these:

deviceready has not fired after 5 seconds. cordova.js:5613
Channel not fired: onCordovaConnectionReady cordova.js:5613
Channel not fired: onCordovaInfoReady 
==

> deviceready doesn't fire in Chrome Ripple
> -
>
> Key: CB-3387
> URL: https://issues.apache.org/jira/browse/CB-3387
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: CordovaJS
>Affects Versions: 2.7.0
> Environment: Ripple for Chrome
>Reporter: Andy Van De Walle
>Assignee: Filip Maj
>Priority: Minor
>
> Applications with cordova 2.7 don't seem to work in Ripple (android is just 
> fine).  Following error message shows up:
> Ripple :: Environment Warming Up (Tea. Earl Gray. Hot.) ripple.js:37
> GET http://localhost/workspace/Scan2Order/assets/www/config.xml 404 (Not 
> Found) ripple.js:50
> cordova :: Initialization Finished (Make it so.) ripple.js:37
> GET http://localhost/workspace/Scan2Order/assets/www/cordova_plugins.json 404 
> (Not Found) ripple.js:50
> Uncaught SyntaxError: Unexpected token < cordova.js:6816
> deviceready has not fired after 5 seconds. cordova.js:6672
> Channel not fired: onPluginsReady cordova.js:6665
> Channel not fired: onCordovaReady cordova.js:6665
> Channel not fired: onCordovaConnectionReady cordova.js:6665
> deviceready has not fired after 5 seconds. cordova.js:6672
> Channel not fired: onPluginsReady cordova.js:6665
> Channel not fired: onCordovaReady cordova.js:6665
> Channel not fired: onCordovaConnectionReady cordova.js:6665

--
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-3387) deviceready doesn't fire in Chrome Ripple

2013-06-09 Thread Ramki G (JIRA)

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

Ramki G commented on CB-3387:
-

The issue persists in Cordova 2.8.0 as well

> deviceready doesn't fire in Chrome Ripple
> -
>
> Key: CB-3387
> URL: https://issues.apache.org/jira/browse/CB-3387
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: CordovaJS
>Affects Versions: 2.7.0
> Environment: Ripple for Chrome
>Reporter: Andy Van De Walle
>Assignee: Filip Maj
>Priority: Minor
>
> Applications with cordova 2.7 don't seem to work in Ripple (android is just 
> fine).  Following error message shows up:
> Ripple :: Environment Warming Up (Tea. Earl Gray. Hot.) ripple.js:37
> GET http://localhost/workspace/Scan2Order/assets/www/config.xml 404 (Not 
> Found) ripple.js:50
> cordova :: Initialization Finished (Make it so.) ripple.js:37
> GET http://localhost/workspace/Scan2Order/assets/www/cordova_plugins.json 404 
> (Not Found) ripple.js:50
> Uncaught SyntaxError: Unexpected token < cordova.js:6816
> deviceready has not fired after 5 seconds. cordova.js:6672
> Channel not fired: onPluginsReady cordova.js:6665
> Channel not fired: onCordovaReady cordova.js:6665
> Channel not fired: onCordovaConnectionReady cordova.js:6665
> deviceready has not fired after 5 seconds. cordova.js:6672
> Channel not fired: onPluginsReady cordova.js:6665
> Channel not fired: onCordovaReady cordova.js:6665
> Channel not fired: onCordovaConnectionReady cordova.js:6665

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