Changes

Push Service (Client)

1,706 bytes added, 15:45, 4 May 2015
* Automatic mode: Changes are committed automatically and {{UBIK}} is switched to offline mode;
* Other modes: A dialog is shown to let the users decide whether to commit their changes or not. Changes are, of course, only committed with users' consent. But {{UBIK}} is switched to offline mode either way.
 
=== Popup dialogs ===
[[File:UI_Android_Push_Popup_Emergency.jpg|thumb|alt=Emergency popup|Emergency popup]]
[[File:UI_Android_Push_Popup_Failure.jpg|thumb|alt=Failure popup|Failure popup]]
[[File:UI_Android_Push_Popup_Important_Info.jpg|thumb|alt=Important information popup|Important information popup]]
Since release 2.4.5, it is possible for the client to receive this new type of push. Currently, there are three sub types of this push:
* Emergency;
* Failure;
* Important Information.
Upon receiving such a push, a dialog with the corresponding style is shown to the user. All these popups can also contain a content/document. In either case, the associated object is downloaded as soon as the push is received and the button text is updated accordingly. The possible button states are:
* {{key press|OK}}: If the popup contains only text;
* {{key press|Waiting}}/{{key press|Downloading}}/{{key press|Detail}}: If there is an object associated and the download is pending/on-going/successful;
* {{key press|Close}}: If the associated object somehow cannot be downloaded. The detailed error(s) is/are displayed as notification(s) in this case.
Once the user has confirmed the popup by clicking the {{key press|OK}}/{{key press|Detail}} button, it is considered successful and won’t be received again. In the case of a {{key press|Detail}} button, the associated object is opened in either the {{UBIK}} [[UBIK_Client_Basics#Content_Browser|content browser]] or a third party document viewer.
{{Hint|Users can only dismiss the dialog by clicking the {{key press|OK}}/{{key press|Detail}}/{{key press|Close}} button. The Android back button is disabled when such a popup dialog is shown.}}
{{Clear}}
=== Reacting to processing errors ===