Description
Issue
As of Parse SDK 1.21.0 it is not possible to initialize the Parse SDK again.
Ergo it is not possible to change the server URL.
Changing the server URL can be necessary in an architecture that provides for server app and cname failover.
Suggested solution
I see two scenarios:
a) Connect to a different server instance with same DB.
b) Connect to a different server instance with different DB.
Because scenario b) is possible, it is not enough to only change the URL but also necessary to clear the local cache storage. So it should be possible to deinit the SDK.
There is already a Parse.destroy()
method that is not exposed.
There is a test case that shows that it can be used to deinit the Parse SDK.
Parse-SDK-Android/parse/src/test/java/com/parse/ParseUserTest.java
Lines 1637 to 1639 in 0cfc67e
I suggest to expose the method.