Skip to content

Localdatastore does not work with personal parse server #398

Closed
@AtomicSpider

Description

@AtomicSpider

Current Code

    //Enable Local Datastore
    Parse.enableLocalDatastore(this);

    //initialize Parse with Parse Server
    Parse.initialize(this, getResources().getString(R.string.parse_app_id), getResources().getString(R.string.parse_client_id));

Personal Server Code

    //Enable Local Datastore
    Parse.enableLocalDatastore(this);

    //initialize Parse with Heroku Server
    Parse.initialize(new Parse.Configuration.Builder(this)
                    .applicationId(getResources().getString(R.string.parse_app_id))
                    .clientKey(getResources().getString(R.string.parse_client_id))
                    .server(getResources().getString(R.string.parse_server_url)).build()
    );

App works fine till I replace it with the personal server code, the app crashes while querying from local datastore which is odd. crashes at the code below:

    localQuery.fromLocalDatastore();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions