Close popover

Table of Contents

Attach content support in offline mode

Version:

You can attach content to an offline-enabled application when you are not connected to the network. Specifically, while working in offline mode, you can attach any type of file from the device storage available from the device's native file picker component, for example, built-in image, video, or audio gallery. You can also attach content while working in offline from any mobile app that is installed on the device, for example, Audio Recorder or Camera.

If you are taking a picture or recording a video clip, they can be automatically resized according to compression settings in the Attach Content control in Dev Studio. If you are using Pega Client for Windows, when you use the Attach Content control, the video recording feature is not available.

After a file is attached in offline mode, it is added to the sync queue and is included in the attachment list that is displayed in the application. While you are working in offline mode, you can view or delete any attachment on the attachment list before the application is synchronized with the server. After the application is connected to the network, all the attachments that were added to the queue while in offline mode are automatically synchronized with the Pega Platform server.

When users restart an offline-enabled mobile app, pending file attachments that they added but did not send to the server while working in offline, might no longer be available.

  • Offline-supported controls

    Offline-enabled mobile apps only support a specific set of UI controls.

  • Packaging a signature after the work object is resolved

    For offline-enabled applications, signatures are removed by default from the client store after the work object is resolved. If an offline-enabled application contains a Signature Capture control that must be packaged and previewed, the pyIsWorkSignatureRequired when rule for the @baseclass class must be set to true.

  • Configuring file size options for the Attach content control

    To limit the size of files that the user attaches to a mobile app, for example to conserve bandwidth during synchronization, you can configure attachment compression parameters, such as video clip format, video clip duration, maximum image size, and maximum image quality.

  • Attach Content control

    Enable application users to attach files to a desktop, mobile, or an offline-enabled application by adding the Attach content control (pxAttachContent).

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.