How to update Parse SDK for iOS

First of all, you have to install the latest version of the Parse SDK for iOS. You can download it here depending on the platform you are using to develop:

Download Parse SDK for iOS (Swift or Objective-C)

Download Parse SDK for Xamarin

 

Then, you have to update your app to connect to https://parseapi.back4app.com instead of https://api.parse.com. You need to use one of the codes below depending on the platform you are using to develop:

 

Swift

let configuration = ParseClientConfiguration {
    $0.applicationId = "YOUR_APP_ID"
    $0.clientKey = "YOUR_CLIENT_KEY"
    $0.server = "https://parseapi.back4app.com"
    $0.localDatastoreEnabled = true // If you need to enable local data store
}
Parse.initializeWithConfiguration(configuration)

 

Objective-C

[Parse initializeWithConfiguration:[ParseClientConfiguration configurationWithBlock:^(id<ParseMutableClientConfiguration> configuration) {
   configuration.applicationId = @"YOUR_APP_ID";
   configuration.clientKey = @"YOUR_CLIENT_KEY";
   configuration.server = @"https://parseapi.back4app.com";
   configuration.localDatastoreEnabled = YES; // If you need to enable local data store
}]];

 

Xamarin

ParseClient.Initialize(new ParseClient.Configuration {
    ApplicationId = "YOUR_APP_ID",
    WindowsKey = "YOUR_DOTNET_KEY",
    Server = "https://parseapi.back4app.com"
});

 

It’s done! You only need to publish the new version of your iOS app!

Once your users have updated the app to the new version, they will start requesting back{4}app’s API instead of parse.com one.

Not updated apps will continue connecting in parse.com API, but DON’T WORRY! It will nicely work until January 28, 2017. Because your database was successfully migrated to back{4}app, both parseapi.back4app.com and api.parse.com will read/update the data into the same database: your new migrated database in the back{4}app’s servers. Learn more.