Hi there,
In our app we are trying to clean up the replica registry on our ArcGIS Servers whenever a downloaded offline geodatabase is deleted or overwritten by a new one.
We are using the methods unregisterGeodatabase(_ : AGSGeodatabase, completion: ((Error?) -> Void)) and unregisterGeodatabase(withSyncID: UUID, completion: ((Error?) -> Void)) on AGSGeodatabaseSyncTask to unregister the replicas. We found both methods are not working and the completion closures are never invoked.
Here are the steps we are using the methods:
1. Create an instance (agsGdbSyncTask) of AGSGeodatabaseSyncTask with the feature service URL.
2. Set the agsGdbSyncTask.credential as our services are secured.
3. Load the task: agsGdbSyncTask.load() { error in ...}. The load completion closure is invoked and the error is nil.
4. Run the above unregister methods in the completion closure of the agsGdbSyncTask.load()
5. Found both unregister methonds do not work and their completion closures are never called.
I'm using Xcode 14.3 and ArcGIS Runtime SDK for iOS 100.15.2. Has anybody come across this or got any idea please?
Thanks,
Shimin