-
-
Notifications
You must be signed in to change notification settings - Fork 735
ParseUser.getCurrentUser() is null after app update #492
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I have been able to now get a 100% repro step: Pre-conditions:
Now:
Since the server is not up, it will fail saying login with facebook failed. Now ensure Parse server is up. Now try to login again with Facebook but now app will never be able to login as it keeps failing. The only way to recover is reinstall the app. |
After setting Parse log level as verbose, I see that Parse makes network requests first time: V/com.parse.ParseRequest: Request failed. Waiting 1140 milliseconds before attempt #1 However, after second time onwards, I don't see any request made the client. Furthermore, even if I call ParseUser.logout() before user clicks on login agin, it still does not make the request |
@jjalan I am also getting same issue, did you get any solution for this? |
@jjalan hi, I'm getting the same error, did you found a soultiion? |
same issue here, any solutions? |
If the user has installed the app and logged in with Facebook (done using Parse Android SDK UI Library), everything is working great. Now, when we publish a new version of the app and the user updates the app, ParseUser.getCurrentUser() is returning null.
I am initializing Parse in Application.java as follows:
Parse.enableLocalDatastore(this); Parse.initialize(new Parse.Configuration.Builder(this) .applicationId(getString(R.string.parse_app_id)) .clientKey(getString(R.string.parse_client_key)) .server(getString(R.string.parse_server_url)) .build() );
On my MainActivity (launcher Activity), I do the following:
if (ParseUser.getCurrentUser() == null) { Intent intent = new Intent(this, LoginActivity.class); ParseLoginConfig config = new ParseLoginConfig(); config.setFacebookLoginEnabled(true); intent.putExtras(config.toBundle()); startActivityForResult(intent, LOGIN_REQUEST); }
Here, LoginActivity derives from ParseLoginActivity. This is the only place we show login screen. This implies that on every update, somehow ParseUser.getCurrentUser() is getting null.
Is this expected? I do not want to force the user to re-login everytime they update the app.
The text was updated successfully, but these errors were encountered: