You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by Brian LeRoux <b...@brian.io> on 2013/07/31 17:51:44 UTC
phonegap 3 android plugin woe from rem
https://github.com/remy/phonegap_test
I *think* his plugin target-dir attrib was clobbering. That aside, the
whole README.md is instructive to our userland pain.
Re: NSURLCache from disk behavior
Posted by Shazron <sh...@gmail.com>.
See: https://issues.apache.org/jira/browse/CB-3071
On Thu, Sep 19, 2013 at 3:46 PM, Sethi, Raman <ra...@sap.com> wrote:
> We have an enterprise app, a part of which is online and we are seeing
> that NSURLCache works fine when the cache bits are served from the memory.
>
> Now if the app exited and is restarted (as opposed to resumed) NSURLCache
> is not serving the pages from the disk (as memory cache is wiped)
>
> The disk part of the cache below seems to be populated as the sqlite DB is
> not empty and is growing in size as the online part of the application is
> browsed
> but returns nil when asked for the cached copy of the document.
>
> Has anybody run into this ?
>
> int cacheSizeMemory = 8 * 1024 * 1024; // 8MB
> int cacheSizeDisk = 32 * 1024 * 1024; // 32MB
> NSURLCache* sharedCache = [[NSURLCache alloc]
> initWithMemoryCapacity:cacheSizeMemory diskCapacity:cacheSizeDisk diskPath:@
> "nsurlcache"];
> [NSURLCache setSharedURLCache:sharedCache];
>
> Thanks
>
> Raman
>
NSURLCache from disk behavior
Posted by "Sethi, Raman" <ra...@sap.com>.
We have an enterprise app, a part of which is online and we are seeing that NSURLCache works fine when the cache bits are served from the memory.
Now if the app exited and is restarted (as opposed to resumed) NSURLCache is not serving the pages from the disk (as memory cache is wiped)
The disk part of the cache below seems to be populated as the sqlite DB is not empty and is growing in size as the online part of the application is browsed
but returns nil when asked for the cached copy of the document.
Has anybody run into this ?
int cacheSizeMemory = 8 * 1024 * 1024; // 8MB
int cacheSizeDisk = 32 * 1024 * 1024; // 32MB
NSURLCache* sharedCache = [[NSURLCache alloc] initWithMemoryCapacity:cacheSizeMemory diskCapacity:cacheSizeDisk diskPath:@"nsurlcache"];
[NSURLCache setSharedURLCache:sharedCache];
Thanks
Raman
Re: phonegap 3 android plugin woe from rem
Posted by Brian LeRoux <b...@brian.io>.
Ya seemed to do the trick.
https://twitter.com/rem/status/362612149178220547
Anyhow, the lesson here is that we need to get on helping the
community write and publish plugins. (This will be an Adobe team
priority.)
On Wed, Jul 31, 2013 at 10:25 AM, Andrew Grieve <ag...@chromium.org> wrote:
> I downloaded his sample and it worked once I fixed the <param>. Filed
> https://issues.apache.org/jira/browse/CB-4475.
>
> I'm also not seeing the problem of cordova.exec not being defined.
>
>
> On Wed, Jul 31, 2013 at 12:16 PM, Brian LeRoux <b...@brian.io> wrote:
>
>> Could be that jar file too.
>>
>> On Wed, Jul 31, 2013 at 8:58 AM, Filip Maj <fi...@adobe.com> wrote:
>> > The child element of his <feature> element in the plugin.xml is
>> >
>> > <plugin name="something" value="some java namespace" />
>> >
>> > It need to be
>> >
>> > <param name="something" value="some java namespace" />
>> >
>> > On 7/31/13 8:51 AM, "Brian LeRoux" <b...@brian.io> wrote:
>> >
>> >>https://github.com/remy/phonegap_test
>> >>
>> >>I *think* his plugin target-dir attrib was clobbering. That aside, the
>> >>whole README.md is instructive to our userland pain.
>> >
>>
Re: phonegap 3 android plugin woe from rem
Posted by Andrew Grieve <ag...@chromium.org>.
I downloaded his sample and it worked once I fixed the <param>. Filed
https://issues.apache.org/jira/browse/CB-4475.
I'm also not seeing the problem of cordova.exec not being defined.
On Wed, Jul 31, 2013 at 12:16 PM, Brian LeRoux <b...@brian.io> wrote:
> Could be that jar file too.
>
> On Wed, Jul 31, 2013 at 8:58 AM, Filip Maj <fi...@adobe.com> wrote:
> > The child element of his <feature> element in the plugin.xml is
> >
> > <plugin name="something" value="some java namespace" />
> >
> > It need to be
> >
> > <param name="something" value="some java namespace" />
> >
> > On 7/31/13 8:51 AM, "Brian LeRoux" <b...@brian.io> wrote:
> >
> >>https://github.com/remy/phonegap_test
> >>
> >>I *think* his plugin target-dir attrib was clobbering. That aside, the
> >>whole README.md is instructive to our userland pain.
> >
>
Re: phonegap 3 android plugin woe from rem
Posted by Brian LeRoux <b...@brian.io>.
Could be that jar file too.
On Wed, Jul 31, 2013 at 8:58 AM, Filip Maj <fi...@adobe.com> wrote:
> The child element of his <feature> element in the plugin.xml is
>
> <plugin name="something" value="some java namespace" />
>
> It need to be
>
> <param name="something" value="some java namespace" />
>
> On 7/31/13 8:51 AM, "Brian LeRoux" <b...@brian.io> wrote:
>
>>https://github.com/remy/phonegap_test
>>
>>I *think* his plugin target-dir attrib was clobbering. That aside, the
>>whole README.md is instructive to our userland pain.
>
Re: phonegap 3 android plugin woe from rem
Posted by Filip Maj <fi...@adobe.com>.
The child element of his <feature> element in the plugin.xml is
<plugin name="something" value="some java namespace" />
It need to be
<param name="something" value="some java namespace" />
On 7/31/13 8:51 AM, "Brian LeRoux" <b...@brian.io> wrote:
>https://github.com/remy/phonegap_test
>
>I *think* his plugin target-dir attrib was clobbering. That aside, the
>whole README.md is instructive to our userland pain.