Search code examples
parsingxamarinback4app

Using a custom server URL with Parse on Xamarin


I'm working on a company project that has been built over the last 18 months and has a backend built using Parse.com, we are in the progress of migrating to Back4App.

However I am unable to find how to set the API Server URL in the C# SDK which I'm using with Xamarin, as the initialise method only has parameters for an application key and a .NET key.

Would anyone know how I can set the API Server URL to http://parseapi.back4app.com?


Solution

  • You can supply a custom ParseClient.Configuration that contains your Server URL:

    ParseClient.Initialize(new ParseClient.Configuration()
    {
        Server = "http://parseapi.back4app.com",
        ApplicationId = "YourAppIDHere",
    });