Mobile App on IOS doesn't give a proper message if uploading attachment failed on the Activity Screen


Description

Issue Description:
Mobile App on IOS doesn't give a proper message if uploading attachment failed on the Activity Screen.

Steps to Reproduce

Need to Activate Plugin "ITSM Mobile Agent".

1. Log in via browser.
2. Create a Before Insert/Update Business on the "sys_attachment" table with the following scripts.
if(gs.isMobile()){
current.setAbortAction(true);
}
3. Log in Agent Mobile App on IOS.
4. Click to open an Incident.
5. Go to Activity Screen to upload an attachment.
6. The attachment upload fails due to the Business Rule created in step 2.

Expected behavior
It should show a proper error message like "The file upload failed".
Actual behavior
It shows a Native error message "The operation couldn't be completed. (Agent.SGError error 7.)" which is not user-friendly.

Workaround

This issue is under review. To receive notifications when more information is available, subscribe to this Known Error article by clicking the Subscribe button at the top right of the article. If you are able to upgrade, review the Fixed In field to determine whether any versions have a permanent fix.


Related Problem: PRB1485101