Customizing synchronization indicators
Customize the background color and font of the synchronization indicators in your mobile app to better suit the overall look and feel. Synchronization indicators keep users informed about the synchronization status when an offline-enabled mobile app regains network connectivity and starts synchronizing data.
Pega Platform provides four types of native indicators:
- Offline
- The app does not have network access. The Offline indicator disappears only after the app regains network connectivity and starts receiving responses from the server.
- Syncing
- The app is synchronizing data after reestablishing network connectivity or after a period of low-speed connectivity.
- Successfully synced
- All data and status changes are synchronized with the server. The indicator appears only after the app displays the Syncing indicator.
- Sync failed. Retry?
- Data synchronization failed due to an error unrelated to the network. Users can try to synchronize again by tapping the indicator.
Before you begin: Prepare the framework for your offline-enabled app:
- Create a Pega Platform application and configure a mobile channel for the application. For more information, see Designing apps for offline mode and Setting up mobile apps.
- Ensure that you have a case type that you can use in the offline-enabled app, and that the case type only uses features that are supported in offline mode. For more information about offline-supported features, see Understanding offline features. For more information about creating a case type, see Creating a top-level case type.
Note: After you make changes to your application that affect case management, data
management, or the user interface, preview your app on a mobile device to ensure
that the app looks and operates as expected. For more information, see Previewing mobile apps.
Customize the look of selected synchronization indicators by creating and modifying the corresponding style formats.
Example: