When we set up labels on the feature layers in ArcGIS Online ‘Visualization’ page, the labels are shown correctyl in our mobile app.
We use PortalItem to fetch the feature layer, and it is presented on the map with the labels.
Sometime, if we use GeodatabaseSyncTask to download feature layers info geodatabase file, and then show the layers from the database on the map, the labels are missing.
We have set enableLabels flag to true.
Can the labels be downloaded altogether with features?
Do we need Labels API to achieve this?
Is it supported in the current ArcGIS flutter SDK?
The GeodatabaseSyncTask takes the feature service offline directly, which is why it doesn't include any labels.
Instead of taking the feature service offline directly as a geodatabase, I suggest adding the feature service to a web map, designing the labels as needed, and then taking the entire map offline. This approach will store the label definitions directly in the map item, ensuring they work as expected.
Regarding the client-side labeling, it will be supported in all feature layers once we add the labeling APIs.