After the asset download, this fetches the attachments (KML geofences) for the downloaded asset ids in CSV chunks (ref-data limit, default 50). Callers: DataSetupViewModel.syncFarmerAssetAttachments and OptionViewModel.syncFarmerAssetAttachments. IeAssetRepositoryImpl.fetchAssetOnline also calls it with one asset id when the local asset has no geofence. It is online only. For each asset the app keeps the newest ".kml" attachment, writes its inline content (attachmentKindMetaData) or temp URL to filesDir/geofencing, and updates the asset's geofencing columns. A failed chunk is collected and the step ends as ERROR, but the asset data already saved is kept.
Headers
Header
Value
Notes
X-SESSIONID
<session id>
Not declared on the Retrofit method; AuthInterceptor (data/net/AuthInterceptor.kt) adds it. On a 401 or 400 it re-authenticates and retries once.
Parameters
Param
In
Required
Example
Notes
assetIds
query
Yes
5501,5502,5503
Comma-separated server asset ids. Chunk size comes from AppUtils.getFarmerAssetAttachmentPaginationLimit(), default 50.