Not enough storage or quote was reached and user declined to allow more space

1,450 views
Skip to first unread message

IC

unread,
Jul 31, 2012, 9:30:34 PM7/31/12
to phon...@googlegroups.com
I am using PhoneGap 2.0 but the problem is also with PhoneGap 1.81.
IOS 5.1 and IOS 6.0.
My enterprise application downloads 2400 records into the Web Database using web services.
It works successfully outside of PhoneGap (Chrome,Safari) but not in PhoneGap.
In the pure web application, the user is asked for permission but there is no equivalent functionality within the IOS PhoneGap that I have seen.
I suspect that there is a permission issue as the Web storage is clearly able to store the data once you have given permission.
The exact message is: There was not enough remaining storage space, or the storage quota was reached and the user declined to allow more space.
Any help would be appreciated.


Kerri Shotts

unread,
Jul 31, 2012, 9:38:03 PM7/31/12
to phon...@googlegroups.com
How much space do these records take up? iOS has two limits: 5 and 50mb, iirc, so I'm curious which one you are hitting. 

______________________________
Kerri Shotts
photoKandy Studios LLC

📱 Phone: +1 (312) 380-1035

Twitter: @photokandy
--
-- You received this message because you are subscribed to the Google
Groups "phonegap" group.
To post to this group, send email to phon...@googlegroups.com
To unsubscribe from this group, send email to
phonegap+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/phonegap?hl=en?hl=en
 
For more info on PhoneGap or to download the code go to www.phonegap.com
 
To compile in the cloud, check out build.phonegap.com
 
 

IC

unread,
Jul 31, 2012, 9:43:44 PM7/31/12
to phon...@googlegroups.com
I have reached the 50Mb limit.  In Safari, this is when I get an alert and when I agree to allow more extra permission it works okay.
PhoneGap does not ask the question.

Shazron

unread,
Jul 31, 2012, 10:19:50 PM7/31/12
to phon...@googlegroups.com
This is outside the control of iOS PhoneGap. This is entirely iOS
UIWebView functionality - there is no way to increase localStorage
quota dynamically. Blame Apple and/or file a bug with Apple for this
feature.

Chris Brody

unread,
Aug 1, 2012, 8:49:15 AM8/1/12
to phon...@googlegroups.com
You should be able to use a sqlite plugin: https://github.com/davibe/Phonegap-SQLitePlugin or my fork at https://github.com/chbrody/Cordova-SQLitePlugin to get better Web SQL API compliance.

IC

unread,
Aug 1, 2012, 9:26:01 AM8/1/12
to phon...@googlegroups.com
I am considering trying to compress the data before storing it in the web sql database.
Can anyone tell me if this will actually help to reduce database size or does websql compress data anyway when it is stored?
Can anyone suggest any compression libraries for use with javascript.



On Wednesday, 1 August 2012 11:30:34 UTC+10, IC wrote:

IC

unread,
Aug 1, 2012, 7:32:26 PM8/1/12
to phon...@googlegroups.com
I do not want to use the sqllite plugin. Sorry.
Can you tell me if compressing data prior to inserting into sql will ultimately help in overcoming the storage limitation (providing it compresses below 50Mb)?
 

Kerri Shotts

unread,
Aug 1, 2012, 10:07:18 PM8/1/12
to phon...@googlegroups.com, phon...@googlegroups.com
Then you are out of luck. 50mb is the limit.

Whether or not compressing will help would depend on how good the compressor is. You could try to zip the data and see what the end result would be, but it's unlikely you'd be able to write a good zip library in JS. (Not to say that there might not be one, though...)

It also depends on the kind of data you are storing -- data that is already compressed will typically not compress a great deal further, but text will do so nicely. That said, It also depends on the amount of data -- a small amount of data can only compress so far (and, if really small, may in fact be enlarged), while a large piece of data can compress a long ways.

The only way to know for sure is to try, unfortunately. I do worry that you may be putting yourself in a corner by not using the sqlite plugin -- what happens if you need to change data? It needs to be recompressed. What happens if you need to add data -- you might not have room. Further, you have to decompress the data each time, which will result in a significant performance penalty.


______________________________
Kerri Shotts
photoKandy Studios LLC

📱 Phone: +1 (312) 380-1035
🌐 Web: http://photokandy.com 

Twitter: @photokandy


On Aug 1, 2012, at 18:32, IC <pet...@internetcreative.com.au> wrote:

I do not want to use the sqllite plugin. Sorry.
Can you tell me if compressing data prior to inserting into sql will ultimately help in overcoming the storage limitation (providing it compresses below 50Mb)?
 

IC

unread,
Aug 2, 2012, 3:25:02 AM8/2/12
to phon...@googlegroups.com
I am happy to report that compressing the data does in fact directly reduce the sql data size so my application is now working with a very large dataset.
When the data is stored there certainly is a slight performance impact as I am doing all the compression through javascript (until I can find a compatible server algorithm) and I only have to decompress maybe 10 times a day usually under normal circumstances.  The remaining data needs to be available at all times as this is primarily an offline application and cellular data is not available most of the time.

If anyone wants to help me find a dotnet server compression algorithm with a compatible javascript decompression algorithm then please let me know.
I am in fact very happy with the solution I have already but I strive to have an efficient application. 


On Wednesday, 1 August 2012 11:30:34 UTC+10, IC wrote:

Rajeev

unread,
Jan 6, 2013, 2:41:46 AM1/6/13
to phon...@googlegroups.com

IC <peterw@...> writes:

>
>
> I have reached the 50Mb limit.  In Safari, this is when I get an alert and
when I agree to allow more extra permission it works okay.
> PhoneGap does not ask the question.On Wednesday, 1 August 2012 11:30:34
UTC+10, IC wrote:I am using PhoneGap 2.0 but the problem is also with PhoneGap
1.81.IOS 5.1 and IOS 6.0.
> My enterprise application downloads 2400 records into the Web Database using
web services.
> It works successfully outside of PhoneGap (Chrome,Safari) but not in PhoneGap.
> In the pure web application, the user is asked for permission but there is no
equivalent functionality within the IOS PhoneGap that I have seen.
>
> I suspect that there is a permission issue as the Web storage is clearly able
to store the data once you have given permission.
>
> The exact message is: There was not enough remaining storage space, or the
storage quota was reached and the user declined to allow more space.
> Any help would be appreciated.
>
>
>
>
>
>
>


I am getting same error message. Any resolution do you have?

Thanks in advance

Rajeev Dave


Reply all
Reply to author
Forward
0 new messages