Re: 3.0.0 as a beta release?

2013-07-16 Thread David Lewis
This is why I'm upgrading from 2.5 to 2.9 now.


On Tue, Jul 16, 2013 at 1:38 PM, Andrew Grieve  wrote:

> As I'm going through all of the polish details, reading through the upgrade
> guides, and thinking about API-type things that we'd still like to change,
> I'm wondering if it would be wise to message 3.0 as an "early-adopter" or
> "beta" release.
>
> One prime example of something that I think people will get tripped up by
> is that when you use Xcode or Eclipse, your changes will be often blown
> away by "cordova prepare". I think we should explore solutions to this
> (e.g. in Xcode, have the project reference the root www/ and merges/
> instead of the derived one). Another thing we could do is rename www ->
> derived_www/.
>
> The "beta" / "early adopter" label would mean:
> - No 3.0 "final", we can just go with calling "3.1" stable
> - User expectations will be that CLI may have bugs or rough edges (e.g.
> when you remove a platform, any modifications you make will be deleted)
> (e.g. I don't think there's a way to "plugin ls" that shows the @src of
> your plugins - URL+hash+subdir) (e.g. There is no way yet for apps to
> depend on plugins by adding them to your config.xml & typing "cordova
> plugin sync")
>
>
> Usually major releases come with the expectation that they are better &
> more solid & worthy of attention. I feel like 3.0 will be more of an alpha
> in terms of quality / stability of code changing.
>
> Thoughts?
>


Re: Question about caching

2013-04-25 Thread David Lewis
Thanks.
 On Apr 25, 2013 4:19 PM, "Shazron"  wrote:

> This is more of an Objective-C question now rather than a Cordova API one.
> Not sure if I have any answers.
>
>
> On Thu, Apr 25, 2013 at 1:15 PM, David Lewis  wrote:
>
> > I call removeAllCachedResponses before loading the new index.html.
> >
> > The page does appear to reload but we have files that load files and
> files
> > that get injected into divs. The updated files are not injected. The old
> > cached version is used instead.
> >
> >
> > NSString *reloadTarget = [docDir stringByAppendingPathComponent:[
> > NSString stringWithFormat:@"/index.html"]];
> >
> > [[NSURLCache sharedURLCache] removeAllCachedResponses];
> >
> > [self.webView loadRequest:[NSURLRequest requestWithURL:[NSURL
> > fileURLWithPath:reloadTarget]]];
> >
> >
> > On Thu, Apr 25, 2013 at 3:57 PM, Shazron  wrote:
> >
> > > We set up a cache in AppDelegate.m[1], and I suppose you could hook
> into
> > > CDVPageDidLoadNotification[2] in your own plugin, then clear the
> > cache[3]:
> > >
> > > e.g.
> > > [[NSURLCache sharedURLCache] removeAllCachedResponses]
> > >
> > >
> > > [1]
> > >
> > >
> >
> https://github.com/apache/cordova-ios/blob/c6e71147386d4ad94b07428952d1aae0a9cbf3f5/bin/templates/project/__TESTING__/Classes/AppDelegate.m#L46-L53
> > > [2]
> > >
> > >
> >
> https://github.com/apache/cordova-ios/blob/9facafb4f96c7f81097a9424505398821589ba54/CordovaLib/Classes/CDVPlugin.h#L26
> > > [3]
> > >
> > >
> >
> https://developer.apple.com/library/mac/#documentation/Cocoa/Reference/Foundation/Classes/NSURLCache_Class/Reference/Reference.html
> > >
> > >
> > >
> > > On Thu, Apr 25, 2013 at 11:46 AM, David Lewis 
> wrote:
> > >
> > > > I've got a Cordova 2.6 app on iOS 6 that uses ~/Documents as the
> > webroot
> > > > for updating purposes. Because of the JS load, when the index.html is
> > > > reloaded after it is changed (delete and copy from the update), not
> > > > everything is loaded again.
> > > >
> > > > I don't have the details for it, but there is a display parameter
> that
> > > > should change when the new page is loaded. So far, the only way to
> > > achieve
> > > > this is through resetting the entire app through user intervention.
> > > >
> > > > I've seen reference to iOS Safari caching POST, which we are
> certainly
> > > > using, but the data in question is generated from local files.
> > > >
> > > > Is there a way to reset the cache when the index.html is reloaded?
> > > >
> > > > Thanks,
> > > >
> > > > David
> > > >
> > >
> >
>


Re: Question about caching

2013-04-25 Thread David Lewis
I call removeAllCachedResponses before loading the new index.html.

The page does appear to reload but we have files that load files and files
that get injected into divs. The updated files are not injected. The old
cached version is used instead.


NSString *reloadTarget = [docDir stringByAppendingPathComponent:[
NSString stringWithFormat:@"/index.html"]];

[[NSURLCache sharedURLCache] removeAllCachedResponses];

[self.webView loadRequest:[NSURLRequest requestWithURL:[NSURL
fileURLWithPath:reloadTarget]]];


On Thu, Apr 25, 2013 at 3:57 PM, Shazron  wrote:

> We set up a cache in AppDelegate.m[1], and I suppose you could hook into
> CDVPageDidLoadNotification[2] in your own plugin, then clear the cache[3]:
>
> e.g.
> [[NSURLCache sharedURLCache] removeAllCachedResponses]
>
>
> [1]
>
> https://github.com/apache/cordova-ios/blob/c6e71147386d4ad94b07428952d1aae0a9cbf3f5/bin/templates/project/__TESTING__/Classes/AppDelegate.m#L46-L53
> [2]
>
> https://github.com/apache/cordova-ios/blob/9facafb4f96c7f81097a9424505398821589ba54/CordovaLib/Classes/CDVPlugin.h#L26
> [3]
>
> https://developer.apple.com/library/mac/#documentation/Cocoa/Reference/Foundation/Classes/NSURLCache_Class/Reference/Reference.html
>
>
>
> On Thu, Apr 25, 2013 at 11:46 AM, David Lewis  wrote:
>
> > I've got a Cordova 2.6 app on iOS 6 that uses ~/Documents as the webroot
> > for updating purposes. Because of the JS load, when the index.html is
> > reloaded after it is changed (delete and copy from the update), not
> > everything is loaded again.
> >
> > I don't have the details for it, but there is a display parameter that
> > should change when the new page is loaded. So far, the only way to
> achieve
> > this is through resetting the entire app through user intervention.
> >
> > I've seen reference to iOS Safari caching POST, which we are certainly
> > using, but the data in question is generated from local files.
> >
> > Is there a way to reset the cache when the index.html is reloaded?
> >
> > Thanks,
> >
> > David
> >
>


Question about caching

2013-04-25 Thread David Lewis
I've got a Cordova 2.6 app on iOS 6 that uses ~/Documents as the webroot
for updating purposes. Because of the JS load, when the index.html is
reloaded after it is changed (delete and copy from the update), not
everything is loaded again.

I don't have the details for it, but there is a display parameter that
should change when the new page is loaded. So far, the only way to achieve
this is through resetting the entire app through user intervention.

I've seen reference to iOS Safari caching POST, which we are certainly
using, but the data in question is generated from local files.

Is there a way to reset the cache when the index.html is reloaded?

Thanks,

David


Re: 2.6 and ExtractZipFilePlugin for Android?

2013-04-12 Thread David Lewis
The app downloads update zips. They just need to be unzipped to a
destination directory.

https://github.com/phonegap/phonegap-plugins/tree/master/iOS/ExtractZipFileworks
marvelously in 2.6.

https://github.com/phonegap/phonegap-plugins/tree/master/Android/ExtractZipFilehas
not as yet.


On Fri, Apr 12, 2013 at 12:11 AM, Michal Mocny  wrote:

> One of our developers is working a zip plugin right now actually (just
> coincidentally).  If you give details about your requirements we can try to
> make sure they are met, and will share the plugin sooner rather than later.
>
> I don't know specifics about the plugin you refer to.
>
> -Michal
>
>
> On Thu, Apr 11, 2013 at 10:43 PM, David Lewis  wrote:
>
> > Does ExtractZipFilePlugin for Android work with Cordova 2.6? The same JS
> > call that works for iOS gets an IO_EXCEPTION in Android.
> >
> > Unzip is critical to the app, so I may be forced to revert to 2.4 across
> > the board unless someone is familiar with the problem. I haven't found an
> > email for the original contributor Vishal. No posts found from this year
> > either.
> >
> > Thanks,
> >
> > David
> >
>


Re: Did Deepak forget to turn off debug in 2.6?

2013-04-12 Thread David Lewis
THANK YOU!

It is indeed an S3 that I use for testing.


On Fri, Apr 12, 2013 at 4:55 AM, Shazron  wrote:

> There is no such committer/contributor from Cordova.
>
> Also try searching the code-base using any key words that you provided
> (initializeAttributes, AtomicHTMLToken), you won't find anything:
>
> https://github.com/search?q=DEEPAK+%40apache%2Fcordova-android&type=Code&ref=searchresults
>
> This is not coming from Apache Cordova.
>
> But! - like a good mystery, I checked whether there are any Apache
> contributors named 'Deepak'. There is one, and he contribs to the Apache
> Web Services project: http://ws.apache.org/
>
> Are you using any of the subprojects? (see list in the link)
>
> It might be just in WebCore itself as well:
>
> https://github.com/WebKit/webkit/blob/master/Source/WebCore/html/parser/AtomicHTMLToken.h#L267
>
> And Samsung might be the culprit - are you specifically using a Samsung
> Galaxy S3?
> https://groups.google.com/forum/?fromgroups=#!topic/phonegap/9ZjRR71OnRo
>
>
>
>
> On Thu, Apr 11, 2013 at 7:00 PM, David Lewis  wrote:
>
> > 04-11 21:55:15.476: D/DEEPAK(7802):  In the initializeAttributes() Before
> > insertAttribute() call
> >
> > 04-11 21:55:15.476: D/DEEPAK(7802):  In the initializeAttributes() After
> > insertAttribute() call
> >
> > 04-11 21:55:15.476: D/DEEPAK(7802):  In the AtomicHTMLToken constructor
> > After Call initializeAttributes
> >
> > 04-11 21:55:15.476: D/DEEPAK(7802):  In the AtomicHTMLToken constructor
> > before Call initializeAttributes
> >
> >
> > These are tagged as coming from my app, but it's not from my code.
> Whatever
> > is happening is spamming my logcat. Anybody know how to shut it off?
> >
>


2.6 and ExtractZipFilePlugin for Android?

2013-04-11 Thread David Lewis
Does ExtractZipFilePlugin for Android work with Cordova 2.6? The same JS
call that works for iOS gets an IO_EXCEPTION in Android.

Unzip is critical to the app, so I may be forced to revert to 2.4 across
the board unless someone is familiar with the problem. I haven't found an
email for the original contributor Vishal. No posts found from this year
either.

Thanks,

David


Did Deepak forget to turn off debug in 2.6?

2013-04-11 Thread David Lewis
04-11 21:55:15.476: D/DEEPAK(7802):  In the initializeAttributes() Before
insertAttribute() call

04-11 21:55:15.476: D/DEEPAK(7802):  In the initializeAttributes() After
insertAttribute() call

04-11 21:55:15.476: D/DEEPAK(7802):  In the AtomicHTMLToken constructor
After Call initializeAttributes

04-11 21:55:15.476: D/DEEPAK(7802):  In the AtomicHTMLToken constructor
before Call initializeAttributes


These are tagged as coming from my app, but it's not from my code. Whatever
is happening is spamming my logcat. Anybody know how to shut it off?


Re: cordova.exec bridge for OS X

2013-03-05 Thread David Lewis
That answers my next question. I was just trying to find the cordova.osx.js
for 2.4. The build in 2.4 doesn't actually load Cordova.

Thanks.


On Tue, Mar 5, 2013 at 2:23 AM, Shazron  wrote:

> FYI
> https://issues.apache.org/jira/browse/CB-2621
>
> The bridge works but it has no plugins to call yet.
>
> The bridge is by binding an object at window.cordovabridge which has a
> native exec function. My initial idea is to keep using the opaque
> callbackId reference like iOS for possible plugin re-use.
>
> We don't have to do that of course, since we can keep a JavaScriptCore C
> API reference to the actual JavaScript callbacks and call them directly,
> not sure of adding this added complexity for plugin authors (we can have
> wrappers of course).
>


Re: CEF & Cordova?

2013-02-08 Thread David Lewis
Ripple is fine for development. Not so much for office users.

On Fri, Feb 8, 2013 at 7:26 PM, Gord Tanner  wrote:
> You can always use Ripple.
>
> Github.com/blackberry/ripple-ui
>
> Install it via npm:
>
> Npm install ripple -g
> From developer.blackberry.com
> Or
> From the chrome App Store
>
> Sent from my iPhone
>
> On 2013-02-08, at 4:16 PM, David Lewis  wrote:
>
>> Yes. Specifically Windows 7 as Win8 isn't even being talked about.
>>
>> http://code.google.com/p/chromiumembedded/
>>
>> The cefclient looks to be a might more reasonable to work with than
>> actual webkit. I've tweaked it to load locally and display as kiosk.
>> Just need to wrap my head around exec().
>>
>> On Fri, Feb 8, 2013 at 4:08 PM, Kerri Shotts  wrote:
>>> Wait -- are you asking if there's a desktop version of Phonegap? I was 
>>> assuming you meant a Chrome-based render for mobile devices, esp. since the 
>>> webkit on some mobile devices is quite borked. (Android 2.x, I'm looking at 
>>> you.)
>>>
>>>
>>>
>>> ___
>>> Kerri Shotts
>>> photoKandy Studios, LLC
>>>
>>> On the Web: http://www.photokandy.com/
>>>
>>> Social Media:
>>>  Twitter: @photokandy, http://twitter.com/photokandy
>>>  Tumblr: http://photokandy.tumblr.com/
>>>  Github: https://github.com/kerrishotts
>>>https://github.com/organizations/photokandyStudios
>>>  CoderWall: https://coderwall.com/kerrishotts
>>>
>>> Apps on the Apple Store:
>>>  
>>> https://itunes.apple.com/us/artist/photokandy-studios-llc/id498577828
>>>
>>>
>>> On Friday, February 8, 2013 at 2:57 PM, David Lewis wrote:
>>>
>>>> That's unfortunate. My team is working on webkit specific apps just
>>>> because so many mobile devices use it; iOS, Android, and Blackberry
>>>> 7+. Having a desktop webkit container would alleviate a lot of work
>>>> forking Windows specific versions. I need to get it done anyway, I
>>>> just thought I'd ask. The closest I've found is DesktopGap but it has
>>>> less PG support than the current Win7 container.
>>>>
>>>> On Fri, Feb 8, 2013 at 3:27 PM, Kerri Shotts >>> (mailto:kerrisho...@gmail.com)> wrote:
>>>>> Most modern platform's internal browsers are based on webkit -- iPhone 
>>>>> and Android, etc. Windows Phone (and the upcoming Firefox OS) would be 
>>>>> exceptions to the rule.
>>>>>
>>>>> I know there's been work done on supporting PG with Chrome as the 
>>>>> renderer, but don't hold your breath for it; a lot of stuff would have to 
>>>>> be rewritten.
>>>>> ___
>>>>> Kerri Shotts
>>>>> photoKandy Studios, LLC
>>>>>
>>>>> On the Web: http://www.photokandy.com/
>>>>>
>>>>> Social Media:
>>>>> Twitter: @photokandy, http://twitter.com/photokandy
>>>>> Tumblr: http://photokandy.tumblr.com/
>>>>> Github: https://github.com/kerrishotts
>>>>> https://github.com/organizations/photokandyStudios
>>>>> CoderWall: https://coderwall.com/kerrishotts
>>>>>
>>>>> Apps on the Apple Store:
>>>>> https://itunes.apple.com/us/artist/photokandy-studios-llc/id498577828
>>>>>
>>>>>
>>>>> On Friday, February 8, 2013 at 1:33 PM, David Lewis wrote:
>>>>>
>>>>>> My project requires a webkit browser. Does anyone have experience
>>>>>> adding Cordova support to Chromium Embedded Framework?
>>>
>>>


Re: CEF & Cordova?

2013-02-08 Thread David Lewis
Yes. Specifically Windows 7 as Win8 isn't even being talked about.

http://code.google.com/p/chromiumembedded/

The cefclient looks to be a might more reasonable to work with than
actual webkit. I've tweaked it to load locally and display as kiosk.
Just need to wrap my head around exec().

On Fri, Feb 8, 2013 at 4:08 PM, Kerri Shotts  wrote:
> Wait -- are you asking if there's a desktop version of Phonegap? I was 
> assuming you meant a Chrome-based render for mobile devices, esp. since the 
> webkit on some mobile devices is quite borked. (Android 2.x, I'm looking at 
> you.)
>
>
>
> ___
> Kerri Shotts
> photoKandy Studios, LLC
>
> On the Web: http://www.photokandy.com/
>
> Social Media:
>   Twitter: @photokandy, http://twitter.com/photokandy
>   Tumblr: http://photokandy.tumblr.com/
>   Github: https://github.com/kerrishotts
> https://github.com/organizations/photokandyStudios
>   CoderWall: https://coderwall.com/kerrishotts
>
> Apps on the Apple Store:
>   
> https://itunes.apple.com/us/artist/photokandy-studios-llc/id498577828
>
>
> On Friday, February 8, 2013 at 2:57 PM, David Lewis wrote:
>
>> That's unfortunate. My team is working on webkit specific apps just
>> because so many mobile devices use it; iOS, Android, and Blackberry
>> 7+. Having a desktop webkit container would alleviate a lot of work
>> forking Windows specific versions. I need to get it done anyway, I
>> just thought I'd ask. The closest I've found is DesktopGap but it has
>> less PG support than the current Win7 container.
>>
>> On Fri, Feb 8, 2013 at 3:27 PM, Kerri Shotts > (mailto:kerrisho...@gmail.com)> wrote:
>> > Most modern platform's internal browsers are based on webkit -- iPhone and 
>> > Android, etc. Windows Phone (and the upcoming Firefox OS) would be 
>> > exceptions to the rule.
>> >
>> > I know there's been work done on supporting PG with Chrome as the 
>> > renderer, but don't hold your breath for it; a lot of stuff would have to 
>> > be rewritten.
>> > ___
>> > Kerri Shotts
>> > photoKandy Studios, LLC
>> >
>> > On the Web: http://www.photokandy.com/
>> >
>> > Social Media:
>> > Twitter: @photokandy, http://twitter.com/photokandy
>> > Tumblr: http://photokandy.tumblr.com/
>> > Github: https://github.com/kerrishotts
>> > https://github.com/organizations/photokandyStudios
>> > CoderWall: https://coderwall.com/kerrishotts
>> >
>> > Apps on the Apple Store:
>> > https://itunes.apple.com/us/artist/photokandy-studios-llc/id498577828
>> >
>> >
>> > On Friday, February 8, 2013 at 1:33 PM, David Lewis wrote:
>> >
>> > > My project requires a webkit browser. Does anyone have experience
>> > > adding Cordova support to Chromium Embedded Framework?
>> > >
>> >
>>
>
>


Re: CEF & Cordova?

2013-02-08 Thread David Lewis
That's unfortunate. My team is working on webkit specific apps just
because so many mobile devices use it; iOS, Android, and Blackberry
7+. Having a desktop webkit container would alleviate a lot of work
forking Windows specific versions. I need to get it done anyway, I
just thought I'd ask. The closest I've found is DesktopGap but it has
less PG support than the current Win7 container.

On Fri, Feb 8, 2013 at 3:27 PM, Kerri Shotts  wrote:
> Most modern platform's internal browsers are based on webkit -- iPhone and 
> Android, etc. Windows Phone (and the upcoming Firefox OS) would be exceptions 
> to the rule.
>
> I know there's been work done on supporting PG with Chrome as the renderer, 
> but don't hold your breath for it; a lot of stuff would have to be rewritten.
> ___
> Kerri Shotts
> photoKandy Studios, LLC
>
> On the Web: http://www.photokandy.com/
>
> Phone:
>   +1 (312) 380-1035 (Google Voice)
>   +1 (618) 541-0176 (Mobile)
>
> Social Media:
>   Twitter: @photokandy, http://twitter.com/photokandy
>   Tumblr: http://photokandy.tumblr.com/
>   Github: https://github.com/kerrishotts
> https://github.com/organizations/photokandyStudios
>   CoderWall: https://coderwall.com/kerrishotts
>
> Apps on the Apple Store:
>   
> https://itunes.apple.com/us/artist/photokandy-studios-llc/id498577828
>
>
> On Friday, February 8, 2013 at 1:33 PM, David Lewis wrote:
>
>> My project requires a webkit browser. Does anyone have experience
>> adding Cordova support to Chromium Embedded Framework?
>>
>>
>
>


CEF & Cordova?

2013-02-08 Thread David Lewis
My project requires a webkit browser. Does anyone have experience
adding Cordova support to Chromium Embedded Framework?