客户端解析服务器问题

时间:2016-09-05 14:07:02

标签: parse-platform server

如何修改此代码以在自定义Parse服务器上运行?

GroupAD

1 个答案:

答案 0 :(得分:0)

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()
        );

    }

这将解决您的问题

相关问题