android - Parse exception: com.parse.ParseRequest$ParseRequestException: invalid session token -
on internship must work parse. i'm made android app in wich using parse cloud. create sign button , if user push button, new account should create. after pushing button,i have exception:
com.parse.parserequest$parserequestexception: invalid session token
i don't know mistake.android studio don't show errors , using instruction. app work fine yesterday morning , first app created 1 week ago have same problem. have internet connection , restarted tablet device.
my source code:
parseuser user = new parseuser(); user.setusername(username); // string username = "ivan" user.setpassword(password); // string password = "divan" user.enablerevocablesessioninbackground(); user.signupinbackground(new signupcallback() { public void done(parseexception e) { if (e == null) { toast.maketext(getapplicationcontext(), "successfully signed up, please log in.", toast.length_long).show(); } else { toast.maketext(getapplicationcontext(), "sign error :" +e.tostring(), toast.length_long).show(); } } });
thanks , sorry bad english.
if aren't using latest version this tutorial explain how make migration. check versions sdk using.
Comments
Post a Comment