On my way moving an Objective-C iOS app from Parse.com to a self-hosted Parse-Server.
I am reading this document .
[Parse initializeWithConfiguration:[ParseClientConfiguration
configurationWithBlock:^(id<ParseMutableClientConfiguration> configuration) {
configuration.applicationId = @"MY_APP_ID";
configuration.clientKey = @"";
configuration.server = @"https://my_app.herokuapp.com/parse";
}]];
But the problem is that when I use this code, I get this error message:
.....] Reachability Flag Status: WR t------ networkStatusForFlags
.....] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: ''clientKey' should not be nil.'
Does anyone know what to do here?
You only need to include the server and applicationID once you are on parse-server. The clientkey is no longer needed, simply do not included it at all.
[Parse initializeWithConfiguration:[ParseClientConfiguration
configurationWithBlock:^(id<ParseMutableClientConfiguration> configuration) {
configuration.applicationId = @"MY_APP_ID";
// configuration.clientKey = @"";
configuration.server = @"https://my_app.herokuapp.com/parse";
}]];
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.