Attachment Sync Bug?

197
0
06-02-2022 07:15 PM
ShiminCai
Occasional Contributor III

Hi there,

When generating offline geodatabase, we don't want to download existing feature attachments but do want to be able to add offline attachments and sync the added attachments to the server.

To do it we

1. set AGSGenerateGeodatabaseParameters.returnAttachments = false to not include existing attachments.

2. set AGSGenerateGeodatabaseParameters.attachmentSyncDirection = AGSAttachmentSyncDirection.upload.

Then we are able to add attachments to offline features. But the problem is that when sync the offline database, the added attachments failed to be synced to the server!!! Is this a bug or what am I doing wrong?

However, if set the AGSGenerateGeodatabaseParameters.returnAttachments = true, the added offline attachments could be synced to the server. But the problem is that the existing attachments were downloaded to the offline database which we don't want...

These are my previous posts about the issue for your information:

https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/questions-about-geodatabase-featu...

 https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/offline-geodatabase-attachments/m...

Thanks,

Shimin

0 Kudos
0 Replies