【问题标题】:Client Parse Server Issue客户端解析服务器问题
【发布时间】:2016-09-05 14:07:02
【问题描述】:
如何修改此代码以在自定义 Parse 服务器上运行?
public class ParseTutorialApplication extends Application {
@Override
public void onCreate() {
super.onCreate();
Parse.initialize(this, "your key", "your key");
ParseInstallation.getCurrentInstallation().saveInBackground();
}
}
【问题讨论】:
标签:
parse-platform
server
【解决方案1】:
public void onCreate() {
super.onCreate();
Parse.enableLocalDatastore(this);
// set applicationId, and server server based on the values in the server
// clientKey is not needed unless explicitly configured
// any network interceptors must be added with the Configuration Builder given this syntax
Parse.initialize(new Parse.Configuration.Builder(this)
.applicationId("yourapplicationid")
.clientKey("yourkey")
.server("http://example.com:1337/parse/").build()
);
}
这将解决您的问题