ios - parse.com javascript login on safari mobile failed.(QuotaExceededError) -
I currently face a problem with the parse (parse.1.1.1) and the Safari mobile browser with iOS 8 I am here. I try to login the user with the following code:
function login () {var login = $ ("# loginTB"). Val (); Var password = $ ("# passwordTB"). Val (); After the successful login to Parse.User.logIn (login.toLowerCase (), password, {success: function (user) {// Do Dous.onsole.log ("successfully logged in"); // var sessionToken = Parse.User Current () ._essionToken; // createCookie ("sessionToken", sessionToken, 7); window.location.href = menuLocation;}, error: function (user, error) {// login failed. Warning ("Error:" + Error.code + "" + error. Message);}});
}
I get this error:
[error] Quota-encoded error: DOM exception 22: Add something An attempt was made for the store to exceed that quota setItem (parse-1.3.1.min.js, line1) _getInstallationId (parse -1.1.1min.js, line1) _request (parse -1.3) 1min.js, line1) log in (parse -1) .1.min.js, line 3) log in (parse -1.1.1.man.js, line3) login (login, line 162) Onclick (login.html, line 1) [error] Quotaxide order: DOM Apava 22: An attempt was made to add something to the storage crossing the Costa SetItem (parse -1.3.1.man.js, line3) _saveCurrentUser (parse -1.3.1.man.js, line3) _handleSaveResult (Pars -1.1.1.man.js, line3) (Anonymous Function) (parse -1.1.1min.js, line3) e (parse -1.1.1.man.js, line2) (Anonyme Function Each ([native code], line 0) each (parse-1.1.1.man.js, line1) resolution (parse -1.3.1.) For pars (-1.1.1minto.js, line2) Min.js, line 2) e ( For every ([original code], line 0) for every (pars - 1), (for Pars- 1.3.1min.js, line2) for every (pars - 1.1.1. JS, Line 1) Resolution (purse -1.3) 1.min.js, Line 2) (Anonymity Function) (parse -1.1.1min.js, line2) e (parse -1.1.1.man.js, Line 2) (Anonymous Function) (purse -13) .1.min.js, line 2) g (parse -1.3.1.man.js, line2) then (parse -1.1.1.man.js, line 2) For each ([native code], line 0) for E (parse -1.1.1min.js, line2) (anonymimefunction) (pars -1.3.1.man.js, line2) for each (Parse -1.3.1.man.js, line1) resolution (parse -1.3.1 .min.js, line 2) onreadystatechange (parse-1.3.1.min.js, line 1)
I have read that there may be a problem with the reach of local storage ...
pars me Faced with a similar problem. In Safari Private Browsing this depends on local storage and parsing of user data in local storage. So when I called this var currentUser = Parse.User.current ();
currentUser was set to null
and I am getting the exact error that you are seeing
According to this, you can check that local storage Is not available and later the Fallback solution is described.
Comments
Post a Comment