[jira] [Updated] (CB-4888) iPad simulator not working with Photo Library, images are empty
[ https://issues.apache.org/jira/browse/CB-4888?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Daniel Roizman updated CB-4888: --- Affects Version/s: 3.0.0 > iPad simulator not working with Photo Library, images are empty > --- > > Key: CB-4888 > URL: https://issues.apache.org/jira/browse/CB-4888 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin Camera >Affects Versions: 3.0.0 > Environment: iPad Simulators 6.0 -> 7.0 haven't tested below ios6 >Reporter: Daniel Roizman > > In the iPad simulator, acquiring a photo results in empty file. When I > tested with both temporary and permanent filesystem, i get the same result. > navigator.camera.getPicture(onSuccess, onFail, { > destinationType: Camera.DestinationType.FILE_URI, > sourceType: Camera.SourceType.PHOTOLIBRARY, > limit: 1, > quality : 50, > targetHeight: 640, > targetWidth: 640 > }); > Works fine on all iPhone simulators, iPad is the only one doing this. I > don't have a physical iPad to test this with. -- 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
[ https://issues.apache.org/jira/browse/CB-3020?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13773633#comment-13773633 ] Shazron Abdullah edited comment on CB-3020 at 9/21/13 12:45 AM: With [~tom.wil...@alpinemetrics.com]'s example however - there is still a problem. When KeyboardShrinksView is true, there is a lot of extra black area when you scroll up. This occurs on both iOS 6 and 7 - I'm not entirely sure this is expected, since it involves jQM, who knows. was (Author: shazron): With [~tom.wil...@alpinemetrics.com]'s example however - there is still a problem. When KeyboardShrinksView is true, there is a lot of extra black area when you scroll up. This occurs on both iOS 6 and 7. > 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
[ https://issues.apache.org/jira/browse/CB-3020?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13773633#comment-13773633 ] Shazron Abdullah commented on CB-3020: -- With [~tom.wil...@alpinemetrics.com]'s example however - there is still a problem. When KeyboardShrinksView is true, there is a lot of extra black area when you scroll up. This occurs on both iOS 6 and 7. > 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
[ https://issues.apache.org/jira/browse/CB-3020?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13773630#comment-13773630 ] Shazron Abdullah commented on CB-3020: -- I also re-arranged the notification handlers so they are ordered (on the same queue) so the form accessory bar is hidden first always, before all the other KeyboardShrinksView code. > 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] [Resolved] (CB-3608) Custom plugins not working on Windows Phone 7
[ https://issues.apache.org/jira/browse/CB-3608?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jesse MacFadyen resolved CB-3608. - Resolution: Cannot Reproduce Waiting for more details to reproduce, possible workarounds posted in comments. > Custom plugins not working on Windows Phone 7 > - > > Key: CB-3608 > URL: https://issues.apache.org/jira/browse/CB-3608 > Project: Apache Cordova > Issue Type: Bug > Components: WP7 >Affects Versions: 2.5.0 > Environment: Nokia Lumia 800, Emulator 7.1 >Reporter: Jeff Shillitto >Assignee: Jesse MacFadyen > > I am trying to develop a plugin along these lines to send an SMS message. It > works on WP8 without problem but not on Windows Phone 7. I have followed the > guide here: > http://cordova.apache.org/docs/en/2.6.0/guide_plugin-development_windows-phone_index.md.html#Developing%20a%20Plugin%20on%20Windows%20Phone > as closely as possible and stripped the code back to it's most basic > elements and it still does not work. > Here are the basics of my code: > Javascript: > cordova.exec(null, null, "SendSMS", "send", []); > Native C#: > namespace Cordova.Extension.Commands > { > class SendSMS : BaseCommand > { > public void send(string options) > { > Debug.WriteLine("Hello Plugin"); > } > } > } > I am getting errors: > A first chance exception of type 'System.MethodAccessException' occurred in > mscorlib.dll > A first chance exception of type 'System.FormatException' occurred in > mscorlib.dll > Additional information: FormatException > As mentioned it all works fine in Windows Phone 8 but not in Windows Phone 7 > so presuming it is some kind of bug. > Of course my code includes the correct using statements and Javascript click > handler etc.. but my Javascript runs without errors and C# code compiles and > runs fine until the cordova.exec is called in the JavaScript. -- 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-3608) Custom plugins not working on Windows Phone 7
[ https://issues.apache.org/jira/browse/CB-3608?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13773509#comment-13773509 ] Jesse MacFadyen commented on CB-3608: - Not sure exactly what is happening without a complete posting I can look at. Here are some suggestions: 1. Define your C# plugin code in the namespace WPCordovaClassLib.Cordova.Commands 2. Ensure that config.xml has a matching feature/plugin for your class : Back in 2.5 I believe it looked like this: {code} ... {code} And nowadays it looks like this: {code} {code} 3. The fact that it works on WP8 but not WP7 implies to me that there may be a class used that is not available in the WP7.1 SDK. 4. Check the 'Output' window of Visual Studio for any issues. > Custom plugins not working on Windows Phone 7 > - > > Key: CB-3608 > URL: https://issues.apache.org/jira/browse/CB-3608 > Project: Apache Cordova > Issue Type: Bug > Components: WP7 >Affects Versions: 2.5.0 > Environment: Nokia Lumia 800, Emulator 7.1 >Reporter: Jeff Shillitto >Assignee: Jesse MacFadyen > > I am trying to develop a plugin along these lines to send an SMS message. It > works on WP8 without problem but not on Windows Phone 7. I have followed the > guide here: > http://cordova.apache.org/docs/en/2.6.0/guide_plugin-development_windows-phone_index.md.html#Developing%20a%20Plugin%20on%20Windows%20Phone > as closely as possible and stripped the code back to it's most basic > elements and it still does not work. > Here are the basics of my code: > Javascript: > cordova.exec(null, null, "SendSMS", "send", []); > Native C#: > namespace Cordova.Extension.Commands > { > class SendSMS : BaseCommand > { > public void send(string options) > { > Debug.WriteLine("Hello Plugin"); > } > } > } > I am getting errors: > A first chance exception of type 'System.MethodAccessException' occurred in > mscorlib.dll > A first chance exception of type 'System.FormatException' occurred in > mscorlib.dll > Additional information: FormatException > As mentioned it all works fine in Windows Phone 8 but not in Windows Phone 7 > so presuming it is some kind of bug. > Of course my code includes the correct using statements and Javascript click > handler etc.. but my Javascript runs without errors and C# code compiles and > runs fine until the cordova.exec is called in the JavaScript. -- 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-4837) [Release + 3.1.0] Branch & Tag RC1 of cordova-cli
[ https://issues.apache.org/jira/browse/CB-4837?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13773532#comment-13773532 ] ASF subversion and git services commented on CB-4837: - Commit f8494a2be27af6600961207a1c4f4007ba6f0df8 in branch refs/heads/master from [~shepheb] [ https://git-wip-us.apache.org/repos/asf?p=cordova-cli.git;h=f8494a2 ] [CB-4837]: Version 3.0.10. Depends on Plugman 0.12.x. > [Release + 3.1.0] Branch & Tag RC1 of cordova-cli > - > > Key: CB-4837 > URL: https://issues.apache.org/jira/browse/CB-4837 > Project: Apache Cordova > Issue Type: Sub-task > Components: CLI >Reporter: Andrew Grieve >Assignee: Braden Shepherdson > Fix For: 3.1.0 > > > Refer to Workflow here: > http://wiki.apache.org/cordova/CuttingReleases -- 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-4837) [Release + 3.1.0] Branch & Tag RC1 of cordova-cli
[ https://issues.apache.org/jira/browse/CB-4837?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Braden Shepherdson resolved CB-4837. Resolution: Fixed Versions 0.12.0 of Plugman and 3.0.10 of CLI are pushed to npm. I used npm tag plugman@0.11.0 latest (and similarly for CLI) to force npm's latest tag back to 0.11.0 and 3.0.9. This is an RC, after all. > [Release + 3.1.0] Branch & Tag RC1 of cordova-cli > - > > Key: CB-4837 > URL: https://issues.apache.org/jira/browse/CB-4837 > Project: Apache Cordova > Issue Type: Sub-task > Components: CLI >Reporter: Andrew Grieve >Assignee: Braden Shepherdson > Fix For: 3.1.0 > > > Refer to Workflow here: > http://wiki.apache.org/cordova/CuttingReleases -- 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-4837) [Release + 3.1.0] Branch & Tag RC1 of cordova-cli
[ https://issues.apache.org/jira/browse/CB-4837?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13773533#comment-13773533 ] ASF subversion and git services commented on CB-4837: - Commit 308a94f1969d9ada07733f74b16653f8416841fe in branch refs/heads/master from [~shepheb] [ https://git-wip-us.apache.org/repos/asf?p=cordova-plugman.git;h=308a94f ] [CB-4837]: Version 0.12.0. Release notes updated. > [Release + 3.1.0] Branch & Tag RC1 of cordova-cli > - > > Key: CB-4837 > URL: https://issues.apache.org/jira/browse/CB-4837 > Project: Apache Cordova > Issue Type: Sub-task > Components: CLI >Reporter: Andrew Grieve >Assignee: Braden Shepherdson > Fix For: 3.1.0 > > > Refer to Workflow here: > http://wiki.apache.org/cordova/CuttingReleases -- 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
[ https://issues.apache.org/jira/browse/CB-3020?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13773549#comment-13773549 ] Tom Wilson commented on CB-3020: Thanks Shazron for all your help. I'm not too familiar with Objective C but I'll try and help out with testing as much as possible. On the template I posted, I'm getting weird behavior when running an iphone app on the ipad when the keyboard is up. See screen shot. under the footer is a black area. The window height is 1308 when it should be 220. http://imgur.com/pAuPfBc IOS7, iphone app deployed to retina ipad. > 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
[ https://issues.apache.org/jira/browse/CB-3020?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13773331#comment-13773331 ] Shazron Abdullah commented on CB-3020: -- Alright, I've got the repo set up: https://github.com/shazron/CB-3020 with the two prefs set to true. Note this has NO core plugins. Preferably a test case can be found that does not require any external dependencies, to rule those things out. Please clone and add your www changes to test, send pull requests, etc. I'll start with [~tom.wil...@alpinemetrics.com]'s gist, and testing [~adlk]'s code as well. Once I confirm the problem (or not), I'll report back here and try to generate a general test case. > 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] [Resolved] (CB-4523) creating app for wp 7&8 on a win 8 notebook throws create.js not found error
[ https://issues.apache.org/jira/browse/CB-4523?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jesse MacFadyen resolved CB-4523. - Resolution: Cannot Reproduce Please re-try using the command {code} cordova platform add wp8 -d {code} And repost any error output you see. Note the -d switch adds debugging output. > creating app for wp 7&8 on a win 8 notebook throws create.js not found error > > > Key: CB-4523 > URL: https://issues.apache.org/jira/browse/CB-4523 > Project: Apache Cordova > Issue Type: Bug > Components: WP7, WP8 >Affects Versions: 3.0.0 > Environment: OS:Windows 8 single language pack,using cordova 3.0.0 > installed using CLI >Reporter: Abhishek Venkatesh >Assignee: Jesse MacFadyen > > I am trying to build a simple app using Apache cordova. Things went well for > android. However when I try to add the wp8 platform on my win 8 notebook, It > show the following error: Creating Cordova-WP8 Project: App Name : abc > Namespace : com.sample.abc Path : C:\Development\abc\platforms\wp8 CREATE > SUCCESS : C:\Development\abc\platforms\wp8 > ERROR: Could not find 'create.js' in 'bin' folder, aborting.. Could someone > please point out what I am doing wrong! Thanks -- 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-4878) mobilespec media tests12 and 13 fail on some devices sometimes
[ https://issues.apache.org/jira/browse/CB-4878?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13773355#comment-13773355 ] David Kemp commented on CB-4878: patched media tests 12,13 to register for status change and wait up to 10 seconds for play start, then check the position. https://github.com/apache/cordova-mobile-spec/commit/4cba23f05443607e26cf82e7746f6fe55511e329 > mobilespec media tests12 and 13 fail on some devices sometimes > -- > > Key: CB-4878 > URL: https://issues.apache.org/jira/browse/CB-4878 > Project: Apache Cordova > Issue Type: Bug > Components: Android, mobile-spec >Affects Versions: Master > Environment: tested with HTC, Samsung S3, nexus S these tests are > flakey, but slower devices fail more often. Almost never fails on nexus 7. >Reporter: David Kemp >Assignee: David Kemp >Priority: Minor > > The tests report that the position should be >0 and is not. > It appears that the test attempts to test the position before the player has > finished downloading the file and initialized. -- 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-4878) mobilespec media tests12 and 13 fail on some devices sometimes
[ https://issues.apache.org/jira/browse/CB-4878?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13773358#comment-13773358 ] David Kemp commented on CB-4878: I have now detected one incident where the media.test.13 failed after 10 seconds with no action on HTC. There is more to the story... > mobilespec media tests12 and 13 fail on some devices sometimes > -- > > Key: CB-4878 > URL: https://issues.apache.org/jira/browse/CB-4878 > Project: Apache Cordova > Issue Type: Bug > Components: Android, mobile-spec >Affects Versions: Master > Environment: tested with HTC, Samsung S3, nexus S these tests are > flakey, but slower devices fail more often. Almost never fails on nexus 7. >Reporter: David Kemp >Assignee: David Kemp >Priority: Minor > > The tests report that the position should be >0 and is not. > It appears that the test attempts to test the position before the player has > finished downloading the file and initialized. -- 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-4265) How to enable Cookies in Windows Phone with cordova ?
[ https://issues.apache.org/jira/browse/CB-4265?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jesse MacFadyen resolved CB-4265. - Resolution: Unresolved The Windows Phone WebBrowser control does not provide this functionality. This currently is not easily supported. The upcoming release of the WP8.1 SDK may make this easier, but there is currently no info available. In the meantime, you may need to use other authentication storage methods, like storing a authKey token in localStorage, and using it in all server api calls. > How to enable Cookies in Windows Phone with cordova ? > - > > Key: CB-4265 > URL: https://issues.apache.org/jira/browse/CB-4265 > Project: Apache Cordova > Issue Type: Bug > Components: WP7, WP8 >Affects Versions: 2.8.0 >Reporter: MOKRANI >Assignee: Jesse MacFadyen > Labels: cookies, cordova, wp7, wp8 > Fix For: 3.1.0 > > > Hi evryone , How to accept cookies in windows phone 7.5/8? > In iPhone cookie accepts code like this > i'm used cordova 2.9 > NSHTTPCookieStorage *cookieStorage = [NSHTTPCookieStorage > sharedHTTPCookieStorage]; [cookieStorage > setCookieAcceptPolicy:NSHTTPCookieAcceptPolicyAlways]; > In android cookie accepts code like this > CookieManager.setAcceptFileSchemeCookies(true); > i search in forms but no one given solution about this. How to achieve this > in windows phone. am building phonegap windows phone package this issue rises > while login authentication, in IOS and Android i solved by accepting cookies > with above code but how to do in Windows Phone > Thanks for any help! -- 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-4882) Add Firefox OS to coho
[ https://issues.apache.org/jira/browse/CB-4882?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Steve Gill resolved CB-4882. Resolution: Fixed > Add Firefox OS to coho > -- > > Key: CB-4882 > URL: https://issues.apache.org/jira/browse/CB-4882 > Project: Apache Cordova > Issue Type: Improvement > Components: FirefoxOS >Reporter: Steve Gill >Assignee: Steve Gill > -- 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
[ https://issues.apache.org/jira/browse/CB-3020?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13773346#comment-13773346 ] Shazron Abdullah commented on CB-3020: -- With [~tom.wil...@alpinemetrics.com]'s gist and both prefs to true, I see the extra white) space (accessory bar background) at the end (but if KeyboardShrinksView is false, it's fine). With [~adlk]'s code (simple input type=text), it shows a separate white area (accessory bar background) when both prefs are true, and a black area (webview truncated, but no accessory bar) when HideKeyboardFormAccessoryBar=true,KeyboardShrinksView=false. I have to leave for a couple of hours but I'll get back on this after. > 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
[ https://issues.apache.org/jira/browse/CB-3020?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13773316#comment-13773316 ] Shazron Abdullah commented on CB-3020: -- I'm going to provide a sample index.html, and a test project containing the 3.1.0-rc1 iOS code so we can all be on the same page. I'll put the index.html in a gist/repo for us to update as we see fit. Right now we're just not on the same page and it's hard to get confirmation and verification of issue resolution. Stay tuned. > 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
[ https://issues.apache.org/jira/browse/CB-3020?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13772949#comment-13772949 ] Chris Emerson edited comment on CB-3020 at 9/20/13 6:57 PM: Hey guys - I'm using (and need) the following to work: . I tried the above stuff and something a guy put here: https://github.com/cpojer/cordova-ios/commit/883ebf049bfd6a4a2b210f69b7b6bab229269eff but nothing got things working for me. By "working" I mean I *DON'T* want the keyboard to shrink my view when it appears ... which is what I need 99.5% of the time. I think I have a working (hack) fix if anyone wants to try/test. All I did was comment out the first 3 lines of the keyboardWillShowOrHide method - after doing that the keyboard stopped shrinking my view - Yay! If anyone tests/confirms the same on their end please let me know. -Update 1: I had some iPad issues so I updated my hack a bit- -Update 2: Looks like it works on the simulator but on the iPad itself this hack stops working after a few show/hide instances ... trying to resolve still- -Update 3: Ok - after some more testing/code-mangling I think I got this hack working consistently now - on both IOS devices AND the simulator. I can't claim to know how/why really as this issue is so quirky - but at least my view isn't being shrunk by the keyboard for now!- Update 4: This is getting ridiculous I know. This hack fix now includes way to add a css class to on keyboard show/hide. This is something I may/may not keep using going forward - though I suppose thing belongs in a plugin not the CDVViewController.m file ... but alas it remains in this keyboardshrinkview fix for now. I've also moved my scary hack code to a Gist here to spare this thread any unnecessary pain and suffering h4. https://gist.github.com/cemerson/6642026 I will stay tuned for a cleaner/actual fix for this issue ... was (Author: chrisemersonnc): Hey guys - I'm using (and need) the following to work: . I tried the above stuff and something a guy put here: https://github.com/cpojer/cordova-ios/commit/883ebf049bfd6a4a2b210f69b7b6bab229269eff but nothing got things working for me. By "working" I mean I *DON'T* want the keyboard to shrink my view when it appears ... which is what I need 99.5% of the time. I think I have a working (hack) fix if anyone wants to try/test. All I did was comment out the first 3 lines of the keyboardWillShowOrHide method - after doing that the keyboard stopped shrinking my view - Yay! If anyone tests/confirms the same on their end please let me know. *Update 1: I had some iPad issues so I updated my getting-uglier-by-the-minute hack a bit* -first version removed- *Update 2: Looks like it works on the simulator but on the iPad itself this hack stops working after a few show/hide instances ... trying to resolve still* -second version removed- *Update 3: Ok - after some more testing/code-mangling I think I got this hack working consistently now - on both IOS devices AND the simulator*. I can't claim to know how/why really as this issue is so quirky - but at least my view isn't being shrunk by the keyboard for now! Dear God please someone fix w/a clean/logical fix when you can! {code:title=CDVViewController.m} - (void)keyboardWillShowOrHide:(NSNotification*)notif { // Ignore this conditional statement and just assume KeyboardShrinksView=true // if (![@"true" isEqualToString :[self settingForKey:@"KeyboardShrinksView"]]) { //return; // } BOOL showEvent = [notif.name isEqualToString:UIKeyboardWillShowNotification]; CGRect keyboardFrame = [notif.userInfo[UIKeyboardFrameEndUserInfoKey] CGRectValue]; keyboardFrame = [self.view convertRect:keyboardFrame fromView:nil]; CGRect newFrame = self.view.bounds; if (showEvent) { // Add, don't subtract, the keyboard height to webview frame // newFrame.size.height -= keyboardFrame.size.height; newFrame.size.height += keyboardFrame.size.height; // don't allow frame height to exceed 1024 (iPad) if(newFrame.size.height > 1024) newFrame.size.height = 1024; self.webView.scrollView.contentInset = UIEdgeInsetsMake(0, 0, 0, 0); //-keyboardFrame.size.height, 0); } else { self.webView.scrollView.contentInset = UIEdgeInsetsMake(0, 0, 0, 0); } // NSLog(@"keyboardWillShowOrHide() [webView height:%f | keyboardFrame height:%f]",newFrame.size.height, keyboardFrame.size.height); // this seems to be needed every pass otherwise the device (iPad) // starts shrinking the webview again self.webView.scrollView.contentInset = UIEdgeInsetsMake(0, 0, 0, 0); self.webView.frame = newFrame; } {code} > HideKeyboardFormAccessoryBar and KeyboardShrinksView show white bar instead > of removing it > ---
[jira] [Commented] (CB-3020) HideKeyboardFormAccessoryBar and KeyboardShrinksView show white bar instead of removing it
[ https://issues.apache.org/jira/browse/CB-3020?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13773303#comment-13773303 ] Chris Emerson commented on CB-3020: --- @Miguel - yeah I do think there's possibly a timing element to this issue and/or my hack. Not sure I'm seeing this toolbar thing yet though - my use may be diff than yours? (share screenshot?) I hacked my fix a bit more (and moved it to a Gist) - see above if you can use and/or help make it better. > 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-4846) Support the two new multitasking modes in iOS 7
[ https://issues.apache.org/jira/browse/CB-4846?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13773306#comment-13773306 ] Shazron Abdullah commented on CB-4846: -- You are right. All this time I thought "UIBackgroundModes" (the plural in there should have given me a clue!) was just a String value, but it's actually an Array: https://developer.apple.com/library/ios/documentation/general/Reference/InfoPlistKeyReference/Articles/iPhoneOSKeys.html#//apple_ref/doc/uid/TP40009252-SW22 > Support the two new multitasking modes in iOS 7 > --- > > Key: CB-4846 > URL: https://issues.apache.org/jira/browse/CB-4846 > Project: Apache Cordova > Issue Type: New Feature > Components: iOS >Affects Versions: 3.0.0 >Reporter: Shazron Abdullah >Assignee: Shazron Abdullah >Priority: Minor > Labels: ios7 > Fix For: 3.2.0 > > > See > https://developer.apple.com/library/prerelease/ios/releasenotes/General/WhatsNewIniOS/Articles/iOS7.html#//apple_ref/doc/uid/TP40013162-SW10 > https://developer.apple.com/library/prerelease/ios/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/ManagingYourApplicationsFlow/ManagingYourApplicationsFlow.html#//apple_ref/doc/uid/TP40007072-CH4 > New background modes: > 1. background fetch > 2. remote notification > This is either/or mode (modification of Info.plist). > These require appdelegate functions to be implemented as well. As an > alternative, this could be added as "empty" plugins (we provide the plugin > template), and the user can just add their custom code in. > "Hooking" into the appdelegate is possible with plugins by method proxying, > see the Pushwoosh plugin: > https://github.com/shaders/phonegap-cordova-push-notifications/blob/cf7f1c1857a4bb88931e8bd34356f0cc6add3c74/iOS/Plugins/PushRuntime.m#L111 > My suggestion is this is added as a plugin. -- 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
[ https://issues.apache.org/jira/browse/CB-3020?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13773304#comment-13773304 ] Miguel Angel Duran Garcia commented on CB-3020: --- At least, it's a solution. The problem persist as I said with the previous solution, because the toolbar doesn't show, that's true but the "hidden" toolbar doesn't let to show the content. It shows like a white rectangle on it. > 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] [Resolved] (CB-4820) Can't find cordovastarter for WP7 in phongap3.0
[ https://issues.apache.org/jira/browse/CB-4820?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jesse MacFadyen resolved CB-4820. - Resolution: Incomplete > Can't find cordovastarter for WP7 in phongap3.0 > > > Key: CB-4820 > URL: https://issues.apache.org/jira/browse/CB-4820 > Project: Apache Cordova > Issue Type: Bug > Components: WP7 >Affects Versions: 3.0.0 > Environment: Phonegap Version: 3.0.0, Platform: Wp7, Operating > system: Windows 7, Development tool: visual studio 2010. >Reporter: Karthik >Assignee: Jesse MacFadyen >Priority: Blocker > Labels: WP7,, cordova-cli > > After i create the wp7 project in phonegap3.0, inside project/platforms > folder i can see the "WP7" folder. But i cant see the cordovastarter for wp7 > to create/import that project in visual studio 2010 to work/debug. How can i > run that project in visual studio 2010 for wp7. -- 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-4658) WP8 config.xml not located inside www/ directory
[ https://issues.apache.org/jira/browse/CB-4658?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jesse MacFadyen updated CB-4658: Fix Version/s: 3.2.0 > WP8 config.xml not located inside www/ directory > > > Key: CB-4658 > URL: https://issues.apache.org/jira/browse/CB-4658 > Project: Apache Cordova > Issue Type: Bug > Components: WP8 >Affects Versions: Master, 3.1.0 > Environment: >Reporter: Carlos Santana >Assignee: Jesse MacFadyen >Priority: Critical > Fix For: 3.2.0 > > > Other platforms like android and ios have the config.xml inside the www > directory. > According to the config.xml specification for widget > http://www.w3.org/TR/widgets/#reserved-file-names-table > config.xml and index.html need to be located inside the widget folder. > According with the Cordova implementation 'www' looks like the hardcoded > location. > This will provide better user experience for developers to have less > differences between platforms and follow the w3c standard for config.xml -- 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
[ https://issues.apache.org/jira/browse/CB-3020?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13773335#comment-13773335 ] Shazron Abdullah commented on CB-3020: -- Goes without saying also, use Xcode 5 and iOS 7 (I'll also test on iOS 6) > 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
[ https://issues.apache.org/jira/browse/CB-3020?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13773320#comment-13773320 ] Tom Wilson commented on CB-3020: here is a sample index.html file that I've been using for testing. It uses jquery mobile and has long lists with text boxes and fixed header and footers. https://gist.github.com/twilly86/6642342 > 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-4820) Can't find cordovastarter for WP7 in phongap3.0
[ https://issues.apache.org/jira/browse/CB-4820?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13773288#comment-13773288 ] Jesse MacFadyen commented on CB-4820: - What are the exact commands you are running? Are you using cordova-cli or phonegap-cli? > Can't find cordovastarter for WP7 in phongap3.0 > > > Key: CB-4820 > URL: https://issues.apache.org/jira/browse/CB-4820 > Project: Apache Cordova > Issue Type: Bug > Components: WP7 >Affects Versions: 3.0.0 > Environment: Phonegap Version: 3.0.0, Platform: Wp7, Operating > system: Windows 7, Development tool: visual studio 2010. >Reporter: Karthik >Assignee: Jesse MacFadyen >Priority: Blocker > Labels: WP7,, cordova-cli > > After i create the wp7 project in phonegap3.0, inside project/platforms > folder i can see the "WP7" folder. But i cant see the cordovastarter for wp7 > to create/import that project in visual studio 2010 to work/debug. How can i > run that project in visual studio 2010 for wp7. -- 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
[ https://issues.apache.org/jira/browse/CB-3020?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13773300#comment-13773300 ] Shazron Abdullah commented on CB-3020: -- This hack might work, but it is the wrong way to approach it for a final solution (I'm not sure I see the problem anymore as I already stated). Perhaps its an iPad problem, I haven't tested that yet, I will. If KeyboardShrinksView is false it should never run the following code. > 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-4846) Support the two new multitasking modes in iOS 7
[ https://issues.apache.org/jira/browse/CB-4846?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13773175#comment-13773175 ] Michal Mocny commented on CB-4846: -- My reading of your "either/or" statement suggests that the choice is mutually exclusive, but I didn't understand that to be the case when reading the docs. The statement is "Apps supporting either the fetch or remote-notification background modes may be launched or moved from the suspended to background state at appropriate times." Which I think just mean that using "any" option leads to moving from suspended->background state occasionally. I haven't actually confirmed this, but would be really unpleasantly surprised if you couldn't use both in the same app. > Support the two new multitasking modes in iOS 7 > --- > > Key: CB-4846 > URL: https://issues.apache.org/jira/browse/CB-4846 > Project: Apache Cordova > Issue Type: New Feature > Components: iOS >Affects Versions: 3.0.0 >Reporter: Shazron Abdullah >Assignee: Shazron Abdullah >Priority: Minor > Labels: ios7 > Fix For: 3.2.0 > > > See > https://developer.apple.com/library/prerelease/ios/releasenotes/General/WhatsNewIniOS/Articles/iOS7.html#//apple_ref/doc/uid/TP40013162-SW10 > https://developer.apple.com/library/prerelease/ios/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/ManagingYourApplicationsFlow/ManagingYourApplicationsFlow.html#//apple_ref/doc/uid/TP40007072-CH4 > New background modes: > 1. background fetch > 2. remote notification > This is either/or mode (modification of Info.plist). > These require appdelegate functions to be implemented as well. As an > alternative, this could be added as "empty" plugins (we provide the plugin > template), and the user can just add their custom code in. > "Hooking" into the appdelegate is possible with plugins by method proxying, > see the Pushwoosh plugin: > https://github.com/shaders/phonegap-cordova-push-notifications/blob/cf7f1c1857a4bb88931e8bd34356f0cc6add3c74/iOS/Plugins/PushRuntime.m#L111 > My suggestion is this is added as a plugin. -- 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-4884) FileTransfer caches resources on download on iOS
[ https://issues.apache.org/jira/browse/CB-4884?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13773263#comment-13773263 ] Andrew Grieve commented on CB-4884: --- Generally, the server is responsible for setting Caching rules (e.g. cache-control: no-cache). Could you elaborate on why you'd want to override this? > FileTransfer caches resources on download on iOS > > > Key: CB-4884 > URL: https://issues.apache.org/jira/browse/CB-4884 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin File Transfer >Affects Versions: 3.0.0 > Environment: iOS 5.x and above >Reporter: Ivo Stoilov > Labels: FileTransfer > > FileTransfer uses default caching policy which causes all downloaded > resources to be cached locally, so it makes updating of the server resources > impossible. I have tried with > NSURLRequestReloadIgnoringLocalAndRemoteCacheData and it works as expected. -- 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
[ https://issues.apache.org/jira/browse/CB-3020?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13772949#comment-13772949 ] Chris Emerson edited comment on CB-3020 at 9/20/13 5:28 PM: Hey guys - I'm using (and need) the following to work: . I tried the above stuff and something a guy put here: https://github.com/cpojer/cordova-ios/commit/883ebf049bfd6a4a2b210f69b7b6bab229269eff but nothing got things working for me. By "working" I mean I *DON'T* want the keyboard to shrink my view when it appears ... which is what I need 99.5% of the time. I think I have a working (hack) fix if anyone wants to try/test. All I did was comment out the first 3 lines of the keyboardWillShowOrHide method - after doing that the keyboard stopped shrinking my view - Yay! If anyone tests/confirms the same on their end please let me know. *Update 1: I had some iPad issues so I updated my getting-uglier-by-the-minute hack a bit* -first version removed- *Update 2: Looks like it works on the simulator but on the iPad itself this hack stops working after a few show/hide instances ... trying to resolve still* -second version removed- *Update 3: Ok - after some more testing/code-mangling I think I got this hack working consistently now - on both IOS devices AND the simulator*. I can't claim to know how/why really as this issue is so quirky - but at least my view isn't being shrunk by the keyboard for now! Dear God please someone fix w/a clean/logical fix when you can! {code:title=CDVViewController.m} - (void)keyboardWillShowOrHide:(NSNotification*)notif { // Ignore this conditional statement and just assume KeyboardShrinksView=true // if (![@"true" isEqualToString :[self settingForKey:@"KeyboardShrinksView"]]) { //return; // } BOOL showEvent = [notif.name isEqualToString:UIKeyboardWillShowNotification]; CGRect keyboardFrame = [notif.userInfo[UIKeyboardFrameEndUserInfoKey] CGRectValue]; keyboardFrame = [self.view convertRect:keyboardFrame fromView:nil]; CGRect newFrame = self.view.bounds; if (showEvent) { // Add, don't subtract, the keyboard height to webview frame // newFrame.size.height -= keyboardFrame.size.height; newFrame.size.height += keyboardFrame.size.height; // don't allow frame height to exceed 1024 (iPad) if(newFrame.size.height > 1024) newFrame.size.height = 1024; self.webView.scrollView.contentInset = UIEdgeInsetsMake(0, 0, 0, 0); //-keyboardFrame.size.height, 0); } else { self.webView.scrollView.contentInset = UIEdgeInsetsMake(0, 0, 0, 0); } // NSLog(@"keyboardWillShowOrHide() [webView height:%f | keyboardFrame height:%f]",newFrame.size.height, keyboardFrame.size.height); // this seems to be needed every pass otherwise the device (iPad) // starts shrinking the webview again self.webView.scrollView.contentInset = UIEdgeInsetsMake(0, 0, 0, 0); self.webView.frame = newFrame; } {code} was (Author: chrisemersonnc): Hey guys - I'm using (and need) the following to work: . I tried the above stuff and something a guy put here: https://github.com/cpojer/cordova-ios/commit/883ebf049bfd6a4a2b210f69b7b6bab229269eff but nothing got things working for me. By "working" I mean I *DON'T* want the keyboard to shrink my view when it appears ... which is what I need 99.5% of the time. I think I have a working (hack) fix if anyone wants to try/test. All I did was comment out the first 3 lines of the keyboardWillShowOrHide method - after doing that the keyboard stopped shrinking my view - Yay! If anyone tests/confirms the same on their end please let me know. *Update 1: I had some iPad issues so I updated my getting-uglier-by-the-minute hack a bit* *Update 2: Looks like it works on the simulator but on the iPad itself this hack stops working after a few show/hide instances ... trying to resolve still* {code:title=CDVViewController.m} - (void)keyboardWillShowOrHide:(NSNotification*)notif { // Ignore this conditional statement and just assume KeyboardShrinksView=true // if (![@"true" isEqualToString :[self settingForKey:@"KeyboardShrinksView"]]) { //return; // } BOOL showEvent = [notif.name isEqualToString:UIKeyboardWillShowNotification]; CGRect keyboardFrame = [notif.userInfo[UIKeyboardFrameEndUserInfoKey] CGRectValue]; keyboardFrame = [self.view convertRect:keyboardFrame fromView:nil]; CGRect newFrame = self.view.bounds; if (showEvent) { // Add, don't subtract, the keyboard height to webview frame // newFrame.size.height -= keyboardFrame.size.height; newFrame.size.height += keyboardFrame.size.height; // don't allow frame height to exceed 1024 (iPad) if(newFrame.size.height > 1024) newFrame.size.height = 1024; self.webView.scro
[jira] [Commented] (CB-4545) merges directory not supported
[ https://issues.apache.org/jira/browse/CB-4545?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13773203#comment-13773203 ] ASF subversion and git services commented on CB-4545: - Commit cc7bebb7a08b14e46a0914178adace5a77c87482 in branch refs/heads/master from [~viras] [ https://git-wip-us.apache.org/repos/asf?p=cordova-cli.git;h=cc7bebb ] [CB-4545] support for merges directory on both wp7 & wp8 > merges directory not supported > -- > > Key: CB-4545 > URL: https://issues.apache.org/jira/browse/CB-4545 > Project: Apache Cordova > Issue Type: Bug > Components: WP8 >Affects Versions: 3.0.0 >Reporter: Wolfgang Koller >Assignee: Jesse MacFadyen > Fix For: 3.1.0 > > Original Estimate: 5m > Remaining Estimate: 5m > > files inside the merges directory are ignored for wp8. -- 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
[ https://issues.apache.org/jira/browse/CB-3020?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13773232#comment-13773232 ] Miguel Angel Duran Garcia commented on CB-3020: --- Dear Sir [~chrisemersonnc] you're the one. This works perfect for me. No view shrink, no more repaint on the content and no toolbar. Almost perfect. There's one thing still is not working properly. It's a detail but... When you open the keyboard for the first time, the toolbar is showed for a few miliseconds. It's not a very big deal but it's perceptible. Maybe the problem is that the method is called when the keyboard is going to be showed and it takes time to do his job? Regards, Miguel > 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
[ https://issues.apache.org/jira/browse/CB-3020?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13772949#comment-13772949 ] Chris Emerson edited comment on CB-3020 at 9/20/13 4:17 PM: Hey guys - I'm using (and need) the following to work: . I tried the above stuff and something a guy put here: https://github.com/cpojer/cordova-ios/commit/883ebf049bfd6a4a2b210f69b7b6bab229269eff but nothing got things working for me. By "working" I mean I *DON'T* want the keyboard to shrink my view when it appears ... which is what I need 99.5% of the time. I think I have a working (hack) fix if anyone wants to try/test. All I did was comment out the first 3 lines of the keyboardWillShowOrHide method - after doing that the keyboard stopped shrinking my view - Yay! If anyone tests/confirms the same on their end please let me know. *Update 1: I had some iPad issues so I updated my getting-uglier-by-the-minute hack a bit* *Update 2: Looks like it works on the simulator but on the iPad itself this hack stops working after a few show/hide instances ... trying to resolve still* {code:title=CDVViewController.m} - (void)keyboardWillShowOrHide:(NSNotification*)notif { // Ignore this conditional statement and just assume KeyboardShrinksView=true // if (![@"true" isEqualToString :[self settingForKey:@"KeyboardShrinksView"]]) { //return; // } BOOL showEvent = [notif.name isEqualToString:UIKeyboardWillShowNotification]; CGRect keyboardFrame = [notif.userInfo[UIKeyboardFrameEndUserInfoKey] CGRectValue]; keyboardFrame = [self.view convertRect:keyboardFrame fromView:nil]; CGRect newFrame = self.view.bounds; if (showEvent) { // Add, don't subtract, the keyboard height to webview frame // newFrame.size.height -= keyboardFrame.size.height; newFrame.size.height += keyboardFrame.size.height; // don't allow frame height to exceed 1024 (iPad) if(newFrame.size.height > 1024) newFrame.size.height = 1024; self.webView.scrollView.contentInset = UIEdgeInsetsMake(0, 0, -keyboardFrame.size.height, 0); } else { self.webView.scrollView.contentInset = UIEdgeInsetsMake(0, 0, 0, 0); } // NSLog(@"running keyboardWillShowOrHide() [frame height:%f] [kb:%f]",newFrame.size.height, keyboardFrame.size.height); self.webView.frame = newFrame; } {code} was (Author: chrisemersonnc): Hey guys - I'm using (and need) the following to work: . I tried the above stuff and something a guy put here: https://github.com/cpojer/cordova-ios/commit/883ebf049bfd6a4a2b210f69b7b6bab229269eff but nothing got things working for me. By "working" I mean I *DON'T* want the keyboard to shrink my view when it appears ... which is what I need 99.5% of the time. I think I have a working (hack) fix if anyone wants to try/test. All I did was comment out the first 3 lines of the keyboardWillShowOrHide method - after doing that the keyboard stopped shrinking my view - Yay! If anyone tests/confirms the same on their end please let me know. Update 1: I had some iPad issues so I updated my getting-uglier-by-the-minute hack a bit: {code:title=CDVViewController.m} - (void)keyboardWillShowOrHide:(NSNotification*)notif { // Ignore this conditional statement and just assume KeyboardShrinksView=true // if (![@"true" isEqualToString :[self settingForKey:@"KeyboardShrinksView"]]) { //return; // } BOOL showEvent = [notif.name isEqualToString:UIKeyboardWillShowNotification]; CGRect keyboardFrame = [notif.userInfo[UIKeyboardFrameEndUserInfoKey] CGRectValue]; keyboardFrame = [self.view convertRect:keyboardFrame fromView:nil]; CGRect newFrame = self.view.bounds; if (showEvent) { // Add, don't subtract, the keyboard height to webview frame // newFrame.size.height -= keyboardFrame.size.height; newFrame.size.height += keyboardFrame.size.height; // don't allow frame height to exceed 1024 (iPad) if(newFrame.size.height > 1024) newFrame.size.height = 1024; self.webView.scrollView.contentInset = UIEdgeInsetsMake(0, 0, -keyboardFrame.size.height, 0); } else { self.webView.scrollView.contentInset = UIEdgeInsetsMake(0, 0, 0, 0); } // NSLog(@"running keyboardWillShowOrHide() [frame height:%f] [kb:%f]",newFrame.size.height, keyboardFrame.size.height); self.webView.frame = newFrame; } {code} > 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 >
[jira] [Created] (CB-4888) iPad simulator not working with Photo Library, images are empty
Daniel Roizman created CB-4888: -- Summary: iPad simulator not working with Photo Library, images are empty Key: CB-4888 URL: https://issues.apache.org/jira/browse/CB-4888 Project: Apache Cordova Issue Type: Bug Components: Plugin Camera Environment: iPad Simulators 6.0 -> 7.0 haven't tested below ios6 Reporter: Daniel Roizman In the iPad simulator, acquiring a photo results in empty file. When I tested with both temporary and permanent filesystem, i get the same result. navigator.camera.getPicture(onSuccess, onFail, { destinationType: Camera.DestinationType.FILE_URI, sourceType: Camera.SourceType.PHOTOLIBRARY, limit: 1, quality : 50, targetHeight: 640, targetWidth: 640 }); Works fine on all iPhone simulators, iPad is the only one doing this. I don't have a physical iPad to test this with. -- 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-4887) inconsistent HideKeyboardFormAccessoryBar values
Mike Sierra created CB-4887: --- Summary: inconsistent HideKeyboardFormAccessoryBar values Key: CB-4887 URL: https://issues.apache.org/jira/browse/CB-4887 Project: Apache Cordova Issue Type: Bug Components: BlackBerry, Docs, iOS Reporter: Mike Sierra Priority: Minor Doc for the HideKeyboardFormAccessoryBar specifies "true"/"false" as valid values for iOS, and "enable"/"disable" for BlackBerry. Assuming that's accurate info, you can't easily enable the preference for both 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-4345) [BlackBerry10] Improve error output for common failure scenarios
[ https://issues.apache.org/jira/browse/CB-4345?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13773016#comment-13773016 ] ASF subversion and git services commented on CB-4345: - Commit 95c4540327dcccdd49e0275bbbc9a83a2f090f55 in branch refs/heads/master from [~kflores772] [ https://git-wip-us.apache.org/repos/asf?p=cordova-blackberry.git;h=95c4540 ] [CB-4345] Added warning message for when signing keys are not installed - Added check for bbidtoken.csk - Added information to link old signing keys to the blackberry id token - changed check_reqs-utils into signing-utils - Migrated and added unit tests for signing-utils.js - switched warning message for when author.p12 DNE to when barsigner.db DNE Reviewed by Bryan Higgins Tested by Daniel Audino > [BlackBerry10] Improve error output for common failure scenarios > > > Key: CB-4345 > URL: https://issues.apache.org/jira/browse/CB-4345 > Project: Apache Cordova > Issue Type: Improvement > Components: BlackBerry >Affects Versions: 3.0.0 >Reporter: Bryan Higgins >Assignee: Bryan Higgins > Fix For: 3.1.0 > > > In general, we spew a lot of information out when a failure happens. The > output should be more concise.Exact improvements needed TBD. > The common things which throw off users are: > - no signing key provided > - build without run warns about debug token > - run with no debug token (complains about author id mismatch) -- 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-4883) Recover gracefully from failed lazy load download
[ https://issues.apache.org/jira/browse/CB-4883?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13773005#comment-13773005 ] Jeff Thurston commented on CB-4883: --- That seems to have fixed it! Thanks guys! > Recover gracefully from failed lazy load download > - > > Key: CB-4883 > URL: https://issues.apache.org/jira/browse/CB-4883 > Project: Apache Cordova > Issue Type: Bug > Components: CLI >Affects Versions: 3.0.0 > Environment: Mac OS X 10.8.5 >Reporter: Jeff Thurston >Assignee: Braden Shepherdson >Priority: Critical > > 514 JThurston:MyApp $ cordova -d platform add ios > Requesting > {"uri":"https://git-wip-us.apache.org/repos/asf?p=cordova-ios.git;a=snapshot;h=3.0.0;sf=tgz"}... > Error: incorrect header check > at Zlib._binding.onerror (zlib.js:295:17) > 515 JThurston:MyApp $ cordova -d platform add ios > cordova library for "ios" already exists. No need to download. Continuing. > Checking if platform "ios" passes minimum requirements... > Checking iOS requirements... > Running "xcodebuild -version" (output to follow) > Xcode 5.0 > Build version 5A1413 > Running bin/create for platform "ios" with command: > ""/Users/JThurston/.cordova/lib/ios/cordova/3.0.0/bin/create" --arc > "/Users/JThurston/workspace/MyApp/platforms/ios" "io.cordova.hellocordova" > "HelloCordova"" (output to follow) > /bin/sh: /Users/JThurston/.cordova/lib/ios/cordova/3.0.0/bin/create: No such > file or directory > Error: An error occured during creation of ios sub-project. /bin/sh: > /Users/JThurston/.cordova/lib/ios/cordova/3.0.0/bin/create: No such file or > directory > at /usr/local/lib/node_modules/cordova/src/platform.js:249:35 > at > /usr/local/lib/node_modules/cordova/node_modules/shelljs/shell.js:1707:7 > at ChildProcess.exithandler (child_process.js:641:7) > at ChildProcess.EventEmitter.emit (events.js:98:17) > at maybeClose (child_process.js:735:16) > at Socket. (child_process.js:948:11) > at Socket.EventEmitter.emit (events.js:95:17) > at Pipe.close (net.js:466:12) -- 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-4886) Support simple creation of new plugins, using an initial plugin template
[ https://issues.apache.org/jira/browse/CB-4886?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13773004#comment-13773004 ] Michal Mocny commented on CB-4886: -- Perhaps another interesting idea to make it even easier, is a script which automatically adds js-module, source-file, and header-file tags based on the contents on your plugin folder (its a rather easy mapping). > Support simple creation of new plugins, using an initial plugin template > > > Key: CB-4886 > URL: https://issues.apache.org/jira/browse/CB-4886 > Project: Apache Cordova > Issue Type: New Feature > Components: CLI, Plugman >Reporter: Michal Mocny >Priority: Minor > > It would be great if: > plugman create ... > // and/or > cordova plugin create ... > ..would create a default plugin shell using an initial plugin template. > In some previous mailing list discussions, we threw out the possibility of > shipping plugin templates with platforms, but that may not be right. > Relevant Mailing List threads: > - Workflow discussion, including for plugins: > http://callback.markmail.org/search/?q=list%3Aorg.apache.incubator.callback-dev+What%27s+your+daily+workflow+for+cordova+development%3F#query:list%3Aorg.apache.incubator.callback-dev%20What%27s%20your%20daily%20workflow%20for%20cordova%20development%3F+page:1+mid:pv3jn552gemuxdnm+state:results > - Yeoman generator for plugins: > http://callback.markmail.org/search/?q=#query:%20list%3Aorg.apache.incubator.callback-dev+page:1+mid:75g57lus3maejp3p+state:results -- 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-4883) Recover gracefully from failed lazy load download
[ https://issues.apache.org/jira/browse/CB-4883?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13772994#comment-13772994 ] Andrew Grieve commented on CB-4883: --- Fixed up the link. Going to keep the bug open though as our tools should handle it better. > Recover gracefully from failed lazy load download > - > > Key: CB-4883 > URL: https://issues.apache.org/jira/browse/CB-4883 > Project: Apache Cordova > Issue Type: Bug > Components: CLI >Affects Versions: 3.0.0 > Environment: Mac OS X 10.8.5 >Reporter: Jeff Thurston >Assignee: Braden Shepherdson >Priority: Critical > > 514 JThurston:MyApp $ cordova -d platform add ios > Requesting > {"uri":"https://git-wip-us.apache.org/repos/asf?p=cordova-ios.git;a=snapshot;h=3.0.0;sf=tgz"}... > Error: incorrect header check > at Zlib._binding.onerror (zlib.js:295:17) > 515 JThurston:MyApp $ cordova -d platform add ios > cordova library for "ios" already exists. No need to download. Continuing. > Checking if platform "ios" passes minimum requirements... > Checking iOS requirements... > Running "xcodebuild -version" (output to follow) > Xcode 5.0 > Build version 5A1413 > Running bin/create for platform "ios" with command: > ""/Users/JThurston/.cordova/lib/ios/cordova/3.0.0/bin/create" --arc > "/Users/JThurston/workspace/MyApp/platforms/ios" "io.cordova.hellocordova" > "HelloCordova"" (output to follow) > /bin/sh: /Users/JThurston/.cordova/lib/ios/cordova/3.0.0/bin/create: No such > file or directory > Error: An error occured during creation of ios sub-project. /bin/sh: > /Users/JThurston/.cordova/lib/ios/cordova/3.0.0/bin/create: No such file or > directory > at /usr/local/lib/node_modules/cordova/src/platform.js:249:35 > at > /usr/local/lib/node_modules/cordova/node_modules/shelljs/shell.js:1707:7 > at ChildProcess.exithandler (child_process.js:641:7) > at ChildProcess.EventEmitter.emit (events.js:98:17) > at maybeClose (child_process.js:735:16) > at Socket. (child_process.js:948:11) > at Socket.EventEmitter.emit (events.js:95:17) > at Pipe.close (net.js:466:12) -- 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-4886) Support simple creation of new plugins, using an initial plugin template
Michal Mocny created CB-4886: Summary: Support simple creation of new plugins, using an initial plugin template Key: CB-4886 URL: https://issues.apache.org/jira/browse/CB-4886 Project: Apache Cordova Issue Type: New Feature Components: CLI, Plugman Reporter: Michal Mocny Priority: Minor It would be great if: plugman create ... // and/or cordova plugin create ... ..would create a default plugin shell using an initial plugin template. In some previous mailing list discussions, we threw out the possibility of shipping plugin templates with platforms, but that may not be right. Relevant Mailing List threads: - Workflow discussion, including for plugins: http://callback.markmail.org/search/?q=list%3Aorg.apache.incubator.callback-dev+What%27s+your+daily+workflow+for+cordova+development%3F#query:list%3Aorg.apache.incubator.callback-dev%20What%27s%20your%20daily%20workflow%20for%20cordova%20development%3F+page:1+mid:pv3jn552gemuxdnm+state:results - Yeoman generator for plugins: http://callback.markmail.org/search/?q=#query:%20list%3Aorg.apache.incubator.callback-dev+page:1+mid:75g57lus3maejp3p+state:results -- 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-4883) Recover gracefully from failed lazy load download
[ https://issues.apache.org/jira/browse/CB-4883?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13772974#comment-13772974 ] Michael Thornhill commented on CB-4883: --- It looks like this issue is caused by a 404 here https://git-wip-us.apache.org/repos/asf?p=cordova-ios.git;a=snapshot;h=3.0.0;sf=tgz Can this snapshot be reinstated somehow? > Recover gracefully from failed lazy load download > - > > Key: CB-4883 > URL: https://issues.apache.org/jira/browse/CB-4883 > Project: Apache Cordova > Issue Type: Bug > Components: CLI >Affects Versions: 3.0.0 > Environment: Mac OS X 10.8.5 >Reporter: Jeff Thurston >Assignee: Braden Shepherdson >Priority: Critical > > 514 JThurston:MyApp $ cordova -d platform add ios > Requesting > {"uri":"https://git-wip-us.apache.org/repos/asf?p=cordova-ios.git;a=snapshot;h=3.0.0;sf=tgz"}... > Error: incorrect header check > at Zlib._binding.onerror (zlib.js:295:17) > 515 JThurston:MyApp $ cordova -d platform add ios > cordova library for "ios" already exists. No need to download. Continuing. > Checking if platform "ios" passes minimum requirements... > Checking iOS requirements... > Running "xcodebuild -version" (output to follow) > Xcode 5.0 > Build version 5A1413 > Running bin/create for platform "ios" with command: > ""/Users/JThurston/.cordova/lib/ios/cordova/3.0.0/bin/create" --arc > "/Users/JThurston/workspace/MyApp/platforms/ios" "io.cordova.hellocordova" > "HelloCordova"" (output to follow) > /bin/sh: /Users/JThurston/.cordova/lib/ios/cordova/3.0.0/bin/create: No such > file or directory > Error: An error occured during creation of ios sub-project. /bin/sh: > /Users/JThurston/.cordova/lib/ios/cordova/3.0.0/bin/create: No such file or > directory > at /usr/local/lib/node_modules/cordova/src/platform.js:249:35 > at > /usr/local/lib/node_modules/cordova/node_modules/shelljs/shell.js:1707:7 > at ChildProcess.exithandler (child_process.js:641:7) > at ChildProcess.EventEmitter.emit (events.js:98:17) > at maybeClose (child_process.js:735:16) > at Socket. (child_process.js:948:11) > at Socket.EventEmitter.emit (events.js:95:17) > at Pipe.close (net.js:466:12) -- 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
[ https://issues.apache.org/jira/browse/CB-3020?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13772949#comment-13772949 ] Chris Emerson edited comment on CB-3020 at 9/20/13 12:45 PM: - Hey guys - I'm using (and need) the following to work: . I tried the above stuff and something a guy put here: https://github.com/cpojer/cordova-ios/commit/883ebf049bfd6a4a2b210f69b7b6bab229269eff but nothing got things working for me. By "working" I mean I *DON'T* want the keyboard to shrink my view when it appears ... which is what I need 99.5% of the time. I think I have a working (hack) fix if anyone wants to try/test. All I did was comment out the first 3 lines of the keyboardWillShowOrHide method - after doing that the keyboard stopped shrinking my view - Yay! If anyone tests/confirms the same on their end please let me know. Update 1: I had some iPad issues so I updated my getting-uglier-by-the-minute hack a bit: {code:title=CDVViewController.m} - (void)keyboardWillShowOrHide:(NSNotification*)notif { // Ignore this conditional statement and just assume KeyboardShrinksView=true // if (![@"true" isEqualToString :[self settingForKey:@"KeyboardShrinksView"]]) { //return; // } BOOL showEvent = [notif.name isEqualToString:UIKeyboardWillShowNotification]; CGRect keyboardFrame = [notif.userInfo[UIKeyboardFrameEndUserInfoKey] CGRectValue]; keyboardFrame = [self.view convertRect:keyboardFrame fromView:nil]; CGRect newFrame = self.view.bounds; if (showEvent) { // Add, don't subtract, the keyboard height to webview frame // newFrame.size.height -= keyboardFrame.size.height; newFrame.size.height += keyboardFrame.size.height; // don't allow frame height to exceed 1024 (iPad) if(newFrame.size.height > 1024) newFrame.size.height = 1024; self.webView.scrollView.contentInset = UIEdgeInsetsMake(0, 0, -keyboardFrame.size.height, 0); } else { self.webView.scrollView.contentInset = UIEdgeInsetsMake(0, 0, 0, 0); } // NSLog(@"running keyboardWillShowOrHide() [frame height:%f] [kb:%f]",newFrame.size.height, keyboardFrame.size.height); self.webView.frame = newFrame; } {code} was (Author: chrisemersonnc): Hey guys - I'm using (and need) the following to work: . I tried the above stuff and something a guy put here: https://github.com/cpojer/cordova-ios/commit/883ebf049bfd6a4a2b210f69b7b6bab229269eff but nothing got things working for me. By "working" I mean I *DON'T* want the keyboard to shrink my view when it appears ... which is what I need 99.5% of the time. I think I have a working (hack) fix if anyone wants to try/test. All I did was comment out the first 3 lines of the keyboardWillShowOrHide method - after doing that the keyboard stopped shrinking my view - Yay! If anyone tests/confirms the same on their end please let me know. Update 1: I had some iPad issues w/my hack to I updated my getting-uglier-by-the-minute hack a bit: {code:title=CDVViewController.m} - (void)keyboardWillShowOrHide:(NSNotification*)notif { // Ignore this conditional statement and just assume KeyboardShrinksView=true // if (![@"true" isEqualToString :[self settingForKey:@"KeyboardShrinksView"]]) { //return; // } BOOL showEvent = [notif.name isEqualToString:UIKeyboardWillShowNotification]; CGRect keyboardFrame = [notif.userInfo[UIKeyboardFrameEndUserInfoKey] CGRectValue]; keyboardFrame = [self.view convertRect:keyboardFrame fromView:nil]; CGRect newFrame = self.view.bounds; if (showEvent) { // Add, don't subtract, the keyboard height to webview frame // newFrame.size.height -= keyboardFrame.size.height; newFrame.size.height += keyboardFrame.size.height; // don't allow frame height to exceed 1024 (iPad) if(newFrame.size.height > 1024) newFrame.size.height = 1024; self.webView.scrollView.contentInset = UIEdgeInsetsMake(0, 0, -keyboardFrame.size.height, 0); } else { self.webView.scrollView.contentInset = UIEdgeInsetsMake(0, 0, 0, 0); } // NSLog(@"running keyboardWillShowOrHide() [frame height:%f] [kb:%f]",newFrame.size.height, keyboardFrame.size.height); self.webView.frame = newFrame; } {code} > 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: Sha
[jira] [Comment Edited] (CB-3020) HideKeyboardFormAccessoryBar and KeyboardShrinksView show white bar instead of removing it
[ https://issues.apache.org/jira/browse/CB-3020?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13772949#comment-13772949 ] Chris Emerson edited comment on CB-3020 at 9/20/13 12:44 PM: - Hey guys - I'm using (and need) the following to work: . I tried the above stuff and something a guy put here: https://github.com/cpojer/cordova-ios/commit/883ebf049bfd6a4a2b210f69b7b6bab229269eff but nothing got things working for me. By "working" I mean I *DON'T* want the keyboard to shrink my view when it appears ... which is what I need 99.5% of the time. I think I have a working (hack) fix if anyone wants to try/test. All I did was comment out the first 3 lines of the keyboardWillShowOrHide method - after doing that the keyboard stopped shrinking my view - Yay! If anyone tests/confirms the same on their end please let me know. Update 1: I had some iPad issues w/my hack to I updated my getting-uglier-by-the-minute hack a bit: {code:title=CDVViewController.m} - (void)keyboardWillShowOrHide:(NSNotification*)notif { // Ignore this conditional statement and just assume KeyboardShrinksView=true // if (![@"true" isEqualToString :[self settingForKey:@"KeyboardShrinksView"]]) { //return; // } BOOL showEvent = [notif.name isEqualToString:UIKeyboardWillShowNotification]; CGRect keyboardFrame = [notif.userInfo[UIKeyboardFrameEndUserInfoKey] CGRectValue]; keyboardFrame = [self.view convertRect:keyboardFrame fromView:nil]; CGRect newFrame = self.view.bounds; if (showEvent) { // Add, don't subtract, the keyboard height to webview frame // newFrame.size.height -= keyboardFrame.size.height; newFrame.size.height += keyboardFrame.size.height; // don't allow frame height to exceed 1024 (iPad) if(newFrame.size.height > 1024) newFrame.size.height = 1024; self.webView.scrollView.contentInset = UIEdgeInsetsMake(0, 0, -keyboardFrame.size.height, 0); } else { self.webView.scrollView.contentInset = UIEdgeInsetsMake(0, 0, 0, 0); } // NSLog(@"running keyboardWillShowOrHide() [frame height:%f] [kb:%f]",newFrame.size.height, keyboardFrame.size.height); self.webView.frame = newFrame; } {code} was (Author: chrisemersonnc): Hey guys - I'm using (and need) the following to work: . I tried the above stuff and something a guy put here: https://github.com/cpojer/cordova-ios/commit/883ebf049bfd6a4a2b210f69b7b6bab229269eff but nothing got things working for me. By "working" I mean I *DON'T* want the keyboard to shrink my view when it appears ... which is what I need 99.5% of the time. I think I have a working (hack) fix if anyone wants to try/test. All I did was comment out the first 3 lines of the keyboardWillShowOrHide method - after doing that the keyboard stopped shrinking my view - Yay! If anyone tests/confirms the same on their end please let me know. {code:title=CDVViewController.m} - (void)keyboardWillShowOrHide:(NSNotification*)notif { // /* Hack: Ignore this conditional statement and just assume KeyboardShrinksView=true */ // if (![@"true" isEqualToString :[self settingForKey:@"KeyboardShrinksView"]]) { //return; // } {code} > 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-4885) Unable to download files which exceeded default request timeout
Ivo Stoilov created CB-4885: --- Summary: Unable to download files which exceeded default request timeout Key: CB-4885 URL: https://issues.apache.org/jira/browse/CB-4885 Project: Apache Cordova Issue Type: Bug Components: Plugin File Transfer Affects Versions: 3.0.0 Environment: iOS 5.x and above Reporter: Ivo Stoilov FileTransfer uses default request timeout (60 secs) which makes downloading of the larger files impossible due to timeout error. Setting up to something bigger (almost unreachable, for example 30 mins) solves the problem. Just to remind you unlike iOS download request timeout on Android is infinitive. -- 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-4884) FileTransfer caches resources on download on iOS
Ivo Stoilov created CB-4884: --- Summary: FileTransfer caches resources on download on iOS Key: CB-4884 URL: https://issues.apache.org/jira/browse/CB-4884 Project: Apache Cordova Issue Type: Bug Components: Plugin File Transfer Affects Versions: 3.0.0 Environment: iOS 5.x and above Reporter: Ivo Stoilov FileTransfer uses default caching policy which causes all downloaded resources to be cached locally, so it makes updating of the server resources impossible. I have tried with NSURLRequestReloadIgnoringLocalAndRemoteCacheData and it works as expected. -- 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
[ https://issues.apache.org/jira/browse/CB-3020?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13772949#comment-13772949 ] Chris Emerson commented on CB-3020: --- Hey guys - I'm using (and need) the following to work: . I tried the above stuff and something a guy put here: https://github.com/cpojer/cordova-ios/commit/883ebf049bfd6a4a2b210f69b7b6bab229269eff but nothing got things working for me. By "working" I mean I *DON'T* want the keyboard to shrink my view when it appears ... which is what I need 99.5% of the time. I think I have a working (hack) fix if anyone wants to try/test. All I did was comment out the first 3 lines of the keyboardWillShowOrHide method - after doing that the keyboard stopped shrinking my view - Yay! If anyone tests/confirms the same on their end please let me know. {code:title=CDVViewController.m} - (void)keyboardWillShowOrHide:(NSNotification*)notif { // /* Hack: Ignore this conditional statement and just assume KeyboardShrinksView=true */ // if (![@"true" isEqualToString :[self settingForKey:@"KeyboardShrinksView"]]) { //return; // } {code} > 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-4873) XHRHelper is failing with simultaneous asynchronous requests
[ https://issues.apache.org/jira/browse/CB-4873?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13772930#comment-13772930 ] Jonathan Naguin commented on CB-4873: - I tried to make fail the test, but without success... So I checked again my code and I think I found the "problem": I have this {{Main}} file as: {code} require( [ 'modules/login/LoginView', 'modules/home/HomeView' ], function (LoginView, HomeView) { ... } {code} While {{LoginView}} is as (notice the dependency with {{HomeView}}): {code} define( [ 'modules/home/HomeView' ], function (HomeView) { ... } {code} This works fine in every browser/platforms, but causes the problem with WP8 (I don't know why). But if I changed to: {code} require([ 'require' ], function (require) { require(['modules/home/HomeView'], function (HomeView) { //do something with HomeView }); require(['modules/login/LoginView'], function (LoginView) { //do something with LoginView }); } {code} The problem *disapears*. My guess is that is something related with Require JS but I am not sure. > XHRHelper is failing with simultaneous asynchronous requests > > > Key: CB-4873 > URL: https://issues.apache.org/jira/browse/CB-4873 > Project: Apache Cordova > Issue Type: Bug > Components: WP7, WP8 >Affects Versions: 3.0.0 > Environment: Any >Reporter: Jonathan Naguin >Assignee: Jesse MacFadyen >Priority: Critical > Labels: WP8, ajax, asynchronous, multiple, xhrhelper > > XHRHelper is failing in processing mutiple simultaneous asynchronous AJAX > requests. I am using the latest code from > https://github.com/apache/cordova-wp8/blob/master/wp8/template/cordovalib/XHRHelper.cs > The problem is related with {{_onXHRLocalCallback}} which is save into the > {{window}} object as a unique function. When, for example, two Ajax requests > are evaluated at same time, the last {{funk}} function overrides the first > {{_onXHRLocalCallback}} without receive the data from the C# code to that > particular request. > To demostrate this I put {{console.log("XHR: " + resolvedUrl);}} inside > {{__onXHRLocalCallback}} and > {{System.Diagnostics.Debug.WriteLine("HandleCommand: " + url);}} in > {{HandleCommand}} method (my code uses *Require JS* to load this resources). > The output is this: > {code} > HandleCommand: x-wmapp0:www/src/modules/home/HomeView.html > HandleCommand: x-wmapp0:www/src/modules/orders/OrdersView.html > XHR: x-wmapp0:www/src/modules/orders/OrdersView.html > XHR: x-wmapp0:www/src/modules/orders/OrdersView.html > XHR: HandleCommand: x-wmapp0:www/src/modules/order/OrderDetailView.html > XHR: x-wmapp0:www/src/modules/order/OrderDetailView.html > {code} > As you can see, one request is missing: "HomeView.html". > h6. NOTES > - If I set {{false}} the {{this.isAsync}} variable it works (this way it is > executed without using setTimeout). > - If I put a console.log before launch {{funk}} it works. > - It works on the simulator, but it fails on a real device. > h6. Possible solution > In conclusion, I assumed that it's a timing problem. To resolve it I decided > to save a onXHRLocalCallback function per each request: > {code} > var funk = function () { > if (! window.__onXHRLocalCallback){ > window.__onXHRLocalCallback = {}; //Object to store the functions > } > > window.__onXHRLocalCallback[resolvedUrl] = function (responseCode, > responseText) { > alias.status = responseCode; > if (responseCode == '200') { > alias.responseText = responseText; > } > else { > alias.onerror && alias.onerror(responseCode); > } > alias.changeReadyState(XHRShim.DONE); > delete window.__onXHRLocalCallback[resolvedUrl]; //Delete the function > } > alias.changeReadyState(XHRShim.LOADING); > window.external.Notify('XHRLOCAL/' + resolvedUrl); > } > {code} > So I had to change in {{HandleCommand}} method the way of invoking this > callback. I decided to create a helper function to be called in each case: > {code} > /// > /// Invoke a XHR callback > /// > /// The URL of the request > /// The response code > /// The response text > private void InvokeCallback(string url, int code, string text) > { > string args = string.Format("('{0}', {1}, {2});", code, > WPCordovaClassLib.Cordova.JSON.JsonHelper.Serialize(text), > WPCordovaClassLib.Cordova.JSON.JsonHelper.Serialize(url)); > string callback = @"(function(code, text, url){ > try { > window.__onXHRLocalCallback[ url ].call(null, code, text); > } > catch(e) { > console.log('Error calling method from XHRHelper :
[jira] [Commented] (CB-4881) Update Docs Plugin-Plist Section
[ https://issues.apache.org/jira/browse/CB-4881?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13772876#comment-13772876 ] ASF subversion and git services commented on CB-4881: - Commit bfe1370671092ea3e2913f6d75012f68ff7d3a64 in branch refs/heads/master from [~mwbrooks] [ https://git-wip-us.apache.org/repos/asf?p=cordova-docs.git;h=bfe1370 ] [CB-4881] Update plugin to feature in plugin spec for edge. > Update Docs Plugin-Plist Section > > > Key: CB-4881 > URL: https://issues.apache.org/jira/browse/CB-4881 > Project: Apache Cordova > Issue Type: Task > Components: Docs >Affects Versions: 3.0.0 > Environment: Plugman build system >Reporter: Burke Holland >Priority: Minor > Labels: docs > Original Estimate: 1h > Remaining Estimate: 1h > > The docs currently describe the plugin-plist section as deprecated, but then > go on to describe adding a plugin under the config-file section of the XML in > an incorrect way. > It should be... > > > > ...per the article at > http://cordova.apache.org/docs/en/3.0.0/guide_platforms_ios_plugin.md.html#iOS%20Plugins -- 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-4881) Update Docs Plugin-Plist Section
[ https://issues.apache.org/jira/browse/CB-4881?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13772873#comment-13772873 ] Michael Brooks commented on CB-4881: Nice catch. I've added your commit (see above). > Update Docs Plugin-Plist Section > > > Key: CB-4881 > URL: https://issues.apache.org/jira/browse/CB-4881 > Project: Apache Cordova > Issue Type: Task > Components: Docs >Affects Versions: 3.0.0 > Environment: Plugman build system >Reporter: Burke Holland >Priority: Minor > Labels: docs > Original Estimate: 1h > Remaining Estimate: 1h > > The docs currently describe the plugin-plist section as deprecated, but then > go on to describe adding a plugin under the config-file section of the XML in > an incorrect way. > It should be... > > > > ...per the article at > http://cordova.apache.org/docs/en/3.0.0/guide_platforms_ios_plugin.md.html#iOS%20Plugins -- 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-4881) Update Docs Plugin-Plist Section
[ https://issues.apache.org/jira/browse/CB-4881?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13772872#comment-13772872 ] ASF subversion and git services commented on CB-4881: - Commit fcda892b8efd0728c964e9b7e9a428194fd3bf9a in branch refs/heads/master from [~burkeholland] [ https://git-wip-us.apache.org/repos/asf?p=cordova-docs.git;h=fcda892 ] [CB-4881] Change plugin to feature - Change to under section > Update Docs Plugin-Plist Section > > > Key: CB-4881 > URL: https://issues.apache.org/jira/browse/CB-4881 > Project: Apache Cordova > Issue Type: Task > Components: Docs >Affects Versions: 3.0.0 > Environment: Plugman build system >Reporter: Burke Holland >Priority: Minor > Labels: docs > Original Estimate: 1h > Remaining Estimate: 1h > > The docs currently describe the plugin-plist section as deprecated, but then > go on to describe adding a plugin under the config-file section of the XML in > an incorrect way. > It should be... > > > > ...per the article at > http://cordova.apache.org/docs/en/3.0.0/guide_platforms_ios_plugin.md.html#iOS%20Plugins -- 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