-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Have a problem using Local Datastore in Android after parse server migration #490
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
cc @grantland |
I'm having the same problem, I'm unable to work with local database. |
You need to enable the local datastore inside your initialization command, not before like it used to be.
|
thank you, it works. Very appreciated. |
Was having same issue here...Thank you..It worked |
Work like charm!! |
it works. Thanks |
Thanks, its working |
Oh well it is the end of 2020 and I had the same issue. |
Thanks for the reminder @breidest-tbs. Would you want to open an issue in the docs repo? |
I request this issue to parse.com/help.
They said you might report this issue to here.
I try migration to my local parse server.
I succeeded development local parse server.
And my android application connect to this server successfully.
But to use Local Datastore has problem.
I'm using local datastore.
This is my code.
Parse.enableLocalDatastore(this);
try {
ParseQuery query = ParseQuery.getQuery(PARSE_OBJECT);
query.fromLocalDatastore();
mParseObject = query.getFirst();
} catch (ParseException e) {
mParseObject = new ParseObject(PARSE_OBJECT);
}
In userProfileDao.java,
query.fromLocalDatastore(); <- ERROR.... Caused by: java.lang.IllegalStateException: Method requires Local Datastore. Please refer to
Parse#enableLocalDatastore(Context)
.Before migration, this is no problem.
Currently, I used Parse SDK version 1.13 and Parse server version 2.1.
Please to solve this problem.
Thanks.
The text was updated successfully, but these errors were encountered: