Skip to content

Parse AutomaticUser isn't saved between sessions after Parse Migration #470

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

Closed
eladrich opened this issue Jun 1, 2016 · 1 comment
Closed

Comments

@eladrich
Copy link

eladrich commented Jun 1, 2016

Our code uses the automatic user system of Parse. After migrating to our own local parse server Parse started generating a new user every time the application is opened, instead of using the existing one.
I suspect the problem to be in the LocalStorage which has been changed in the new API, as in #398.
But even after using the new API call the problem persists.

Parse.initialize(new Parse.Configuration.Builder(this)
                        .server("server-url") // The trailing slash is important
                        .applicationId("our-app-id")
                        .clientKey("our-client-id")
                        .enableLocalDataStore()
        .build()
        );

Automatic users is enabled as follows:

        ParseUser.enableAutomaticUser();
        ParseACL defaultACL = new ParseACL();
        //enable public read access.
        defaultACL.setPublicReadAccess(true);
        ParseACL.setDefaultACL(defaultACL, true);
@grantland
Copy link
Contributor

If it worked with hosted Parse, but not parse-server, I'd recommend following up with parse-server to figure out what's different since the bug is most likely there.

@TomWFox TomWFox closed this as completed Apr 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants