Hi there,
I'm loading layers in a feature service to map using AGSGeodatabaseSyncTask. The feature service is not secured. Everything works just fine but occasionally not always though, the ArcGIS credential dialog appears on loading the syncTask as shown in the attached image. Once the dialog is out I can't skip or sign in as the sign in button is greyed out. The only way out is to kill the app...
let gdbSyncTask = AGSGeodatabaseSyncTask(url: url)
gdbSyncTask.load { (error) -> Void in
... loading layers to the map after gdbSyncTask loaded without error...
}
I tried to set the gdbSyncTask.credential property with a valid credential of username and password but the dialog still pops up randomly. How can I stop it popping up?
Thanks,
Shimin