AnsweredAssumed Answered

Not able to upload attachments

Question asked by Peter.Feng@bhpbilliton.com_bhp on Aug 14, 2018
Latest reply on Aug 16, 2018 by DGoyal-esristaff

We're using ArcGIS SDK to develop a native mobile application. We have Enabled Attachments for the feature layer we published to ArcGIS Online. This is what we encounterd when trying to add an attachment using the 

addAttachment method -
Error Domain=com.esri.arcgis.runtime.error Code=15 "Cannot call this method in this context" UserInfo={NSLocalizedFailureReason=Unable to edit attachments., NSLocalizedDescription=Cannot call this method in this context, Additional Message=Unable to edit attachments.}
If we open this feature layer in map viewer on PC, we can add attachments without an issue.
Any ideas why we are not able to add attachments programmatically using the SDK?

Outcomes