java - Parse Anonymous Utils: How to only create one user? -


I have a quick question that I am trying to enable automatic user creation in my app so that when you Open it for the first time, then only one user will be created. I read the user docs well and found that the user session is persisted on parsing disk, and when you save the object to that object, then that user is saved in the cloud. However, I have seen two problems with it:

1) When I save an object and the owner makes the user an indicator, then the user object is not present in the cloud.

> 2) If I check that the current user is linked using ParseAnonUtils.isLinked (), then it sometimes returns the correct amount, as the current user is linked, or is false, There is no link as the current user, the same exact parseUser was cached on the session.

I am using this method to create and define users:

  private zero getUser () (if (!! ParseAnonymousUtils.isLinked (ParseUser.getCurrentUser ( ) {Log .V ("Miles", "New User"); ParseAnonymousUtils.logIn (New LoginCallback () {@ Override Public Watched (Last Parsudent User, Parsection E) {if (E == Free) {user .setUsername (UUID.randomUUID). ToString ()); user.setPassword (UUID.randomUUID (.) ToString ()); user.signUpInbackground (new signup callback () {@ Override public or odd (parsexation E) {if (E == blank) {user.saveInBackground (New SaveCallback () {@Override public zero (purse eclipse e) {if (E == blank) {LogV ("Miles", "User saved "}"}} And {Log V. ("Miles", "User not saved") String.valueOf (E.getCode ());}}})}} Else {Log.v ("Miles", " Signup failed "+ string.valouf (e.getcode ()));}}})}} else {Log.v (" miles "," unknown login failed "+ string.value (e.f. code) );}}}); }}  

Help will be highly appreciated


Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -