Description
I am developing an app using Swift on OSX and Parse server locally. I would like to set the server's url using the app (image attached) and test it, so if I need to migrate to a cloud Parse server I don't need to change it on the code and rebuilt my app, I just need to change the server's url using the app itself.
What happens is that after initializing the Parse on Swift
let configuracaoParse = ParseClientConfiguration {
$0.applicationId = self.appId!
$0.clientKey = self.appKey!
$0.server = self.servidor!
}
Parse.initialize(with: configuracaoParse)
and testing it using a query I am not able to change the server's configuration url or reinitialize Parse with another configuration if the server's name is wrong.
I have tried:
1 - Changing the Parse server property: configuracaoParse.server = "server url". Error: Cannot assign to property: 'server' is a get-only property
2 - Reinitiating it using the new configuration. Result: Parse is already initialized.
Is there a way I can change the current server's url or reinitialize Parse with another configuration without restarting the app?