amplifyjs on Safari, iPad1 and iOs 5.1.1

129 views
Skip to first unread message

lam huynh

unread,
Oct 23, 2013, 4:16:33 AM10/23/13
to ampl...@googlegroups.com
I use amplify.store to save some small data ( localStorage) . But there is error : amplify.store quote exceeded
How to fix this bug ?

Doug Neiner

unread,
Oct 23, 2013, 11:21:17 PM10/23/13
to ampl...@googlegroups.com
Is Safari in Private Browsing mode? I believe there is an issue with Safari reporting that those are supported even in private browsing, but then giving them 0MB storage per mode. If this is not the case, please provide more information about your bug.

Doug

On Wednesday, October 23, 2013 at 3:16 AM, lam huynh wrote:

I use amplify.store to save some small data ( localStorage) . But there is error : amplify.store quote exceeded
How to fix this bug ?

--
You received this message because you are subscribed to the Google Groups "Amplify" group.
To unsubscribe from this group and stop receiving emails from it, send an email to amplifyjs+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

lam huynh

unread,
Oct 25, 2013, 12:03:30 AM10/25/13
to ampl...@googlegroups.com
Yes, Safari in private browsing mode . If I turn off private browsing mode , it can saved normally. How do I fix this issue ?

Vào 10:21:17 UTC+7 Thứ năm, ngày 24 tháng mười năm 2013, Doug Neiner đã viết:

Doug Neiner

unread,
Oct 25, 2013, 9:59:03 PM10/25/13
to ampl...@googlegroups.com
You can use a try catch block to catch this issue, but there will be no way to use localStorage in private browsing mode on Safari:

try {
  amplify.store( “__test__”, “value" );
} catch ( e ) {
  amplify.store.type = "memory”;
}

That will just have it work correctly while the page is running, but it would fail when it is refreshed.

Doug

lam huynh

unread,
Oct 28, 2013, 2:59:55 AM10/28/13
to ampl...@googlegroups.com
Hi Doug,
I changed the amplifyjs library follow link: https://github.com/appendto/amplify/commit/a1f4517d4d4b4ba8cfbc680fb7632dca4b5f5ede . It seems work well. Did you try it ?

Vào 08:59:03 UTC+7 Thứ bảy, ngày 26 tháng mười năm 2013, Doug Neiner đã viết:

Doug Neiner

unread,
Oct 28, 2013, 9:15:42 AM10/28/13
to ampl...@googlegroups.com
I am sorry, I didn’t ask which version of Amplify you were using. Glad that worked for you!

Doug
Reply all
Reply to author
Forward
0 new messages